Skip to content

Commit dff091f

Browse files
author
scinorandex
committed
Point vercel to src/index.ts
1 parent f5bf1e8 commit dff091f

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

now.json

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
{
2-
"version": 2,
3-
"builds": [{
4-
"src": "app.js",
5-
"use": "@now/node-server"
6-
}],
7-
"routes": [{
8-
"headers": {
9-
"Access-Control-Allow-Origin": "*",
10-
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
11-
"Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Accept"
12-
},
13-
"src": "/.*",
14-
"dest": "/app.js"
15-
}],
16-
"env": {
17-
"VERSION": "1"
18-
}
2+
"version": 2,
3+
"builds": [
4+
{
5+
"src": "src/index.ts",
6+
"use": "@vercel/node"
7+
}
8+
],
9+
"routes": [
10+
{
11+
"headers": {
12+
"Access-Control-Allow-Origin": "*",
13+
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
14+
"Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Accept"
15+
},
16+
"src": "/.*",
17+
"dest": "/app.js"
18+
}
19+
],
20+
"env": {
21+
"VERSION": "1"
22+
}
1923
}

0 commit comments

Comments
 (0)