diff --git a/fe/build/webpack.dev.conf.js b/fe/build/webpack.dev.conf.js index 070ae22..dd80e71 100644 --- a/fe/build/webpack.dev.conf.js +++ b/fe/build/webpack.dev.conf.js @@ -78,15 +78,15 @@ module.exports = new Promise((resolve, reject) => { process.env.PORT = port // add port to devServer config devWebpackConfig.devServer.port = port - + let host = devWebpackConfig.devServer.host === '0.0.0.0' ? 'localhost' : devWebpackConfig.devServer.host // Add FriendlyErrorsPlugin devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({ compilationSuccessInfo: { - messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`], + messages: [`Your application is running here: http://${host}:${port}`] }, onErrors: config.dev.notifyOnErrors - ? utils.createNotifierCallback() - : undefined + ? utils.createNotifierCallback() + : undefined })) resolve(devWebpackConfig) diff --git a/fe/config/index.js b/fe/config/index.js index feaa3f8..e8af876 100644 --- a/fe/config/index.js +++ b/fe/config/index.js @@ -18,7 +18,7 @@ module.exports = { }, // Various Dev Server settings - host: '127.0.0.1', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: false, errorOverlay: true,