Skip to content

Commit 77f7866

Browse files
committed
fixes facebook#1584 PORT env variable not always an integer
1 parent bee4ece commit 77f7866

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
@@ -43,7 +43,7 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
4343
}
4444

4545
// Tools like Cloud9 rely on this.
46-
var DEFAULT_PORT = process.env.PORT || 3000;
46+
var DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;
4747
var compiler;
4848
var handleCompile;
4949

0 commit comments

Comments
 (0)