We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b7d8c6 + cb71b22 commit 091bfc2Copy full SHA for 091bfc2
package.json
@@ -68,7 +68,8 @@
68
"webpack": "4.42.0",
69
"webpack-dev-server": "3.10.3",
70
"webpack-manifest-plugin": "2.2.0",
71
- "workbox-webpack-plugin": "4.3.1"
+ "workbox-webpack-plugin": "4.3.1",
72
+ "json-server": "^0.16.1"
73
},
74
"scripts": {
75
"start": "node scripts/start.js",
@@ -144,9 +145,5 @@
144
145
"presets": [
146
"react-app"
147
]
- },
148
- "devDependencies": {
149
- "express": "^4.17.1",
150
- "json-server": "^0.16.1"
151
}
152
server.js
@@ -5,7 +5,7 @@ const middlewares = jsonServer.defaults({
5
static: './build',
6
});
7
8
-const PORT = process.env.port || 3001;
+const PORT = process.env.PORT || 3001;
9
10
server.use(middlewares);
11
server.use(router);
0 commit comments