Allow url.hostname in WebpackDevServer config

Signed-off-by: r.bideau <7304827+rbideau@users.noreply.github.com>
This commit is contained in:
r.bideau
2021-02-24 18:36:20 +01:00
parent e93d7048a3
commit 02437824b3
+2
View File
@@ -58,6 +58,8 @@ export async function serveBundle(options: ServeOptions) {
host,
port,
proxy: pkg.proxy,
// When the dev server is behind a proxy, the host and public hostname differ
allowedHosts: [url.hostname],
});
await new Promise<void>((resolve, reject) => {