Skip to content

Commit 322806a

Browse files
committed
Set NODE_ENV for each npm run script to the proper environment
1 parent eeb0f93 commit 322806a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
},
1515
"scripts": {
1616
"start": "npm run build:development && npm run start:development",
17-
"start:production": "node server",
18-
"start:development": "npm run start:development:client & npm run start:development:server",
17+
"start:production": "NODE_ENV=production node server",
18+
"start:development": "NODE_ENV=development npm run start:development:client & npm run start:development:server",
1919
"start:development:client": "node webpack/config.development.hot",
2020
"start:development:server": "$(npm bin)/nodemon server",
2121
"build:development": "$(npm bin)/webpack --progress --colors --display-error-details --config webpack/config.development.js",

0 commit comments

Comments
 (0)