diff --git a/packages/react-scripts/scripts/build.js b/packages/react-scripts/scripts/build.js index 0522201d26d..e5c10d616ad 100644 --- a/packages/react-scripts/scripts/build.js +++ b/packages/react-scripts/scripts/build.js @@ -233,7 +233,7 @@ function build(previousSizeMap) { console.log(' ' + chalk.cyan('npm') + ' install -g pushstate-server'); } console.log(' ' + chalk.cyan('pushstate-server') + ' ' + build); - console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:9000'); + console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:' + (process.env.PORT || 9000) console.log(); } });