-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathvercel.json
30 lines (30 loc) · 862 Bytes
/
vercel.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"framework": "vite",
"headers": [
{
"source": "/api/(.*)",
"headers": [
{ "key": "Access-Control-Allow-Origin", "value": "*" },
{ "key": "Access-Control-Allow-Methods", "value": "GET" },
{ "key": "Access-Control-Allow-Headers", "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" }
]
}
],
"rewrites": [
{
"source": "/api",
"destination": "/api/vercel"
},
{
"source": "/api/(.*)",
"destination": "/api/vercel/$1"
}
],
"functions": {
"api/vercel/**/*.js": {
"memory": 1024,
"maxDuration": 10,
"includeFiles": "data/**"
}
}
}