Skip to content

Commit 6eeae25

Browse files
GAumalaTimer
authored andcommitted
Start the dev server at the specified host
Pass the host from environment variable as argument of the devServer's listen function instead of a field of options object. Set the default host to 0.0.0.0 instead of localhost.
1 parent 3124328 commit 6eeae25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/scripts/start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function run(port) {
8383
addWebpackMiddleware(devServer);
8484

8585
// Launch WebpackDevServer.
86-
devServer.listen(port, err => {
86+
devServer.listen(port, host, err => {
8787
if (err) {
8888
return console.log(err);
8989
}

0 commit comments

Comments
 (0)