Merge pull request #9179 from backstage/rugvip/wsproxy

cli: use auto proto for ws url
This commit is contained in:
Patrik Oldsberg
2022-01-26 12:09:27 +01:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Switched the `WebpackDevServer` configuration to use client-side detection of the WebSocket protocol.
+3
View File
@@ -67,6 +67,9 @@ export async function serveBundle(options: ServeOptions) {
proxy: pkg.proxy,
// When the dev server is behind a proxy, the host and public hostname differ
allowedHosts: [url.hostname],
client: {
webSocketURL: 'auto://0.0.0.0:0/ws',
},
} as any,
);