Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 27668e8

Browse files
env-cmd added now able to start production in local app
1 parent 9a42c1a commit 27668e8

File tree

2 files changed

+64
-1
lines changed

2 files changed

+64
-1
lines changed

package-lock.json

Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
},
3434
"scripts": {
3535
"start": "cross-env PORT=3505 react-scripts start",
36+
"start:production": "cross-env PORT=3505 env-cmd -f .env.production react-scripts start",
3637
"build": "react-scripts build",
3738
"test": "react-scripts test",
3839
"eject": "react-scripts eject",
@@ -52,5 +53,8 @@
5253
"last 1 firefox version",
5354
"last 1 safari version"
5455
]
56+
},
57+
"devDependencies": {
58+
"env-cmd": "^10.1.0"
5559
}
56-
}
60+
}

0 commit comments

Comments
 (0)