diff --git a/packages/react-scripts/scripts/build.js b/packages/react-scripts/scripts/build.js index 0522201d26da5354f4c519d4b16fca5a5a8274a5..e5c10d616ade9fbc794a6c399bc79e0fbd562dd2 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(); } });