fix: Fix bad regex from #1707 (#1712)

This commit is contained in:
Aaron
2025-06-05 01:02:21 -05:00
committed by GitHub
parent 9aedc29289
commit bfc8866b69
@@ -16,7 +16,7 @@ export function devServerGlobals(
return {
define: {
__DEV_SERVER_ORIGIN__: JSON.stringify(
server.origin.replace(/^https?:/, 'ws$1:'),
server.origin.replace(/^http(s?):/, 'ws$1:'),
),
},
};