-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathvercel.json
More file actions
28 lines (28 loc) · 825 Bytes
/
vercel.json
File metadata and controls
28 lines (28 loc) · 825 Bytes
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
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"version": 2,
"name": "aidotnet-playground-api",
"ignoreCommand": "sh -c 'case \"$VERCEL_GIT_COMMIT_REF\" in master|main) exit 1 ;; *) exit 0 ;; esac'",
"functions": {
"api/execute.ts": {
"maxDuration": 30,
"memory": 512
}
},
"rewrites": [
{
"source": "/api/:path*",
"destination": "/api/:path*"
}
],
"headers": [
{
"source": "/api/(.*)",
"headers": [
{ "key": "Access-Control-Allow-Origin", "value": "*" },
{ "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,POST" },
{ "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" }
]
}
]
}