Skip to content

Commit 586885c

Browse files
mattccramptonSpaceK33z
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 e084abe commit 586885c

File tree

1 file changed

+1
-1
lines changed
  • packages/react-cy-scripts/scripts

1 file changed

+1
-1
lines changed

packages/react-cy-scripts/scripts/build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function build(previousSizeMap) {
233233
console.log(' ' + chalk.cyan('npm') + ' install -g pushstate-server');
234234
}
235235
console.log(' ' + chalk.cyan('pushstate-server') + ' ' + build);
236-
console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:9000');
236+
console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:' + (process.env.PORT || 9000)
237237
console.log();
238238
}
239239
});

0 commit comments

Comments
 (0)