diff options
Diffstat (limited to 'src/runtime/hmr.ts')
-rw-r--r-- | src/runtime/hmr.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/hmr.ts b/src/runtime/hmr.ts index ecd3aadb2..46b841b7a 100644 --- a/src/runtime/hmr.ts +++ b/src/runtime/hmr.ts @@ -435,7 +435,7 @@ if (typeof window !== "undefined") { clientStartTime = performance.now(); - const baseURL = new URL(location.origin + "/_api.hmr"); + const baseURL = new URL(location.origin + "/bun:_api.hmr"); baseURL.protocol = location.protocol === "https:" ? "wss" : "ws"; this.socket = new WebSocket(baseURL.toString(), ["bun-hmr"]); this.socket.binaryType = "arraybuffer"; |