Skip to content

Commit f314479

Browse files
mattccramptonrandycoulman
authored andcommitted
Setting a dynamic port value for the pushstate-server URL text (facebook#1628)
* Setting a dynamic port value for the pushstate-server URL text after a build is completed * Fixing merge conflict
1 parent cf5238a commit f314479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/scripts/build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function build(previousSizeMap) {
224224
console.log(' ' + chalk.cyan('npm') + ' install -g pushstate-server');
225225
}
226226
console.log(' ' + chalk.cyan('pushstate-server') + ' ' + build);
227-
console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:9000');
227+
console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:' + (process.env.PORT || 9000)
228228
console.log();
229229
}
230230
});

0 commit comments

Comments
 (0)