cli: use auto proto for ws url

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-01-26 11:08:34 +01:00
parent 3bbf6125c6
commit dc46efa2cc
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,
);