mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-01 12:42:50 +08:00
Default to 0.0.0.0 (#2117)
This commit is contained in:
2
packages/react-scripts/scripts/start.js
vendored
2
packages/react-scripts/scripts/start.js
vendored
@@ -54,7 +54,7 @@ const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;
|
||||
|
||||
function run(port) {
|
||||
const protocol = process.env.HTTPS === 'true' ? 'https' : 'http';
|
||||
const host = process.env.HOST || 'localhost';
|
||||
const host = process.env.HOST || '0.0.0.0';
|
||||
|
||||
// Create a webpack compiler that is configured with custom messages.
|
||||
const compiler = createWebpackCompiler(
|
||||
|
||||
Reference in New Issue
Block a user