We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94bbf32 commit 7774585Copy full SHA for 7774585
packages/next/src/client/components/react-dev-overlay/internal/helpers/get-socket-url.ts
@@ -16,7 +16,7 @@ export function getSocketUrl(assetPrefix: string): string {
16
const protocol = getSocketProtocol(assetPrefix)
17
const prefix = normalizedAssetPrefix(assetPrefix)
18
19
- let url = `${protocol}://${hostname}:${port}${prefix ? `/${prefix}` : ''}`
+ let url = `${protocol}://${hostname}:${port}${prefix && prefix !== '' ? `/${prefix}` : ''}`
20
21
if (prefix.startsWith('http')) {
22
url = `${protocol}://${prefix.split('://', 2)[1]}`
0 commit comments