Skip to content

Commit c1b3911

Browse files
authored
fix: Support http server websocket inside containers (#1707)
1 parent b0bf051 commit c1b3911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/wxt/src/core/builders/vite/plugins/devServerGlobals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function devServerGlobals(
1616
return {
1717
define: {
1818
__DEV_SERVER_ORIGIN__: JSON.stringify(
19-
server.origin.replace(/^http(s):/, 'ws$1:'),
19+
server.origin.replace(/^https?:/, 'ws$1:'),
2020
),
2121
},
2222
};

0 commit comments

Comments
 (0)