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.
1 parent b63e319 commit ef73d8aCopy full SHA for ef73d8a
app.js renamed to index.js
package.json
@@ -15,8 +15,8 @@
15
"url": "https://github.com/arashyeganeh/json-server-api.git"
16
},
17
"scripts": {
18
- "dev": "set PORT=3000 && nodemon app.js",
19
- "start": "set NODE_ENV=production&& set PORT=80&& node app.js",
+ "dev": "set PORT=3000 && nodemon index.js",
+ "start": "set NODE_ENV=production&& set PORT=80&& node index.js",
20
"prettier": "prettier . --write"
21
22
"devDependencies": {
vercel.json
@@ -0,0 +1,15 @@
1
+{
2
+ "version": 1,
3
+ "builds": [
4
+ {
5
+ "src": "./index.js",
6
+ "use": "@vercel/node"
7
+ }
8
+ ],
9
+ "routes": [
10
11
+ "src": "/(.*)",
12
+ "dest": "/"
13
14
+ ]
+}
0 commit comments