Allow url.hostname in WebpackDevServer config
Signed-off-by: r.bideau <7304827+rbideau@users.noreply.github.com>
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user