Skip to content

Commit 6bc5776

Browse files
authored
Merge pull request #172 from ZhenHe17/fix/demo-start-scripts
fix: demo start scripts
2 parents 1b9342e + 616649a commit 6bc5776

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

demo/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
"private": true,
55
"license": "MIT",
66
"scripts": {
7-
"dev": "node server.js",
8-
"build": "next build && next export",
9-
"start": "NODE_ENV=production node server.js"
7+
"prebuild": "cd .. && yarn && yarn build",
8+
"prebuild:npm": "cd .. && npm i && npm run build",
9+
"dev": "next",
10+
"build": "next build",
11+
"start": "NODE_ENV=production next start"
1012
},
1113
"dependencies": {
1214
"babel-plugin-polished": "^1.0.3",

0 commit comments

Comments
 (0)