Skip to content

Commit 14b6ade

Browse files
authored
fix: add cross-env in start command of v4 boilerplate (#75)
In windows, it is not possible to specify environment variables directly before commanding without using cross-env
1 parent 3e23e52 commit 14b6ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v4/midway-framework-koa/boilerplate/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"node": ">=20.0.0"
2929
},
3030
"scripts": {
31-
"start": "NODE_ENV=production node ./bootstrap.js",
31+
"start": "cross-env NODE_ENV=production node ./bootstrap.js",
3232
"dev": "cross-env NODE_ENV=local mwtsc --watch --run @midwayjs/mock/app.js",
3333
"test": "cross-env NODE_ENV=unittest jest",
3434
"cov": "jest --coverage",

0 commit comments

Comments
 (0)