-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvercel.json
More file actions
26 lines (26 loc) · 792 Bytes
/
vercel.json
File metadata and controls
26 lines (26 loc) · 792 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
{
"buildCommand": "cd viewer && npm install && npm run build",
"outputDirectory": "viewer/dist",
"crons": [
{
"path": "/v1/admin/engine/run",
"schedule": "0 0 * * *"
}
],
"rewrites": [
{ "source": "/v1/:path*", "destination": "/api/index" },
{ "source": "/health", "destination": "/api/index" },
{ "source": "/docs", "destination": "/api/index" },
{ "source": "/openapi.json", "destination": "/api/index" }
],
"headers": [
{
"source": "/v1/(.*)",
"headers": [
{ "key": "Access-Control-Allow-Origin", "value": "*" },
{ "key": "Access-Control-Allow-Methods", "value": "GET,POST,PATCH,DELETE,OPTIONS" },
{ "key": "Access-Control-Allow-Headers", "value": "Content-Type,Authorization" }
]
}
]
}