-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvercel.json
More file actions
22 lines (22 loc) · 855 Bytes
/
vercel.json
File metadata and controls
22 lines (22 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"version": 2,
"buildCommand": "mkdir -p /vercel/path0/public && touch /vercel/path0/public/placeholder && npm run db:ci",
"functions": {
"api/index.js": {
"memory": 1024,
"maxDuration": 10
}
},
"rewrites": [{ "source": "/(.*)", "destination": "/api" }],
"headers": [
{
"source": "/api/(.*)",
"headers": [
{ "key": "Access-Control-Allow-Credentials", "value": "true" },
{ "key": "Access-Control-Allow-Origin", "value": "https://votte.flushingtech.org" },
{ "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" },
{ "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, Authorization" }
]
}
]
}