Skip to content

Commit 964e201

Browse files
committed
Add vercel json file.
1 parent 3401fac commit 964e201

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

vercel.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"version": 2,
3+
"builds": [
4+
{
5+
"src": "dist/index.js",
6+
"use": "@vercel/node",
7+
"config": { "includeFiles": ["dist/**"] }
8+
}
9+
],
10+
"routes": [
11+
{
12+
"src": "/(.*)",
13+
"dest": "dist/index.js",
14+
"methods": ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"],
15+
"headers": {
16+
"Access-Control-Allow-Credentials": "true",
17+
"Access-Control-Allow-Origin": "*",
18+
"Access-Control-Allow-Methods": "GET,OPTIONS,PATCH,DELETE,POST,PUT",
19+
"Access-Control-Allow-Headers": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"
20+
}
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)