Skip to content

Commit 54233f6

Browse files
committed
Switch webpack host to 0.0.0.0
1 parent 25d547c commit 54233f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ module.exports = (webpackEnv, argv) => {
308308
? {
309309
static: path.resolve(workspacePath, 'bundles'),
310310
compress: true,
311-
host: 'localhost',
311+
// Listen to all interfaces, as Node 18+ resolves IPv6 first: https://github.com/cypress-io/github-action/blob/master/README.md#wait-on-with-nodejs-18
312+
host: '0.0.0.0',
312313
open: true,
313314
// Needs to be enabled to make SPAs work: https://stackoverflow.com/questions/31945763/how-to-tell-webpack-dev-server-to-serve-index-html-for-any-route
314315
historyApiFallback: historyApiFallback == null ? true : historyApiFallback,

0 commit comments

Comments
 (0)