Skip to content

Commit c0b5b78

Browse files
matoilicDaniel Figueiredo
authored and
Daniel Figueiredo
committed
fixes facebook#1584 PORT env variable not always an integer (facebook#1585)
1 parent 2f789ce commit c0b5b78

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)