forked from pyrimid-ai/pyrimid
-
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) · 821 Bytes
/
vercel.json
File metadata and controls
26 lines (26 loc) · 821 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
{
"framework": "nextjs",
"buildCommand": "next build",
"outputDirectory": ".next",
"headers": [
{
"source": "/api/(.*)",
"headers": [
{ "key": "Access-Control-Allow-Origin", "value": "*" },
{ "key": "Access-Control-Allow-Methods", "value": "GET, OPTIONS" },
{ "key": "Access-Control-Allow-Headers", "value": "Content-Type, X-Affiliate-ID" },
{ "key": "Cache-Control", "value": "public, s-maxage=60, stale-while-revalidate=30" }
]
},
{
"source": "/docs/(.*)",
"headers": [
{ "key": "Cache-Control", "value": "public, s-maxage=3600, stale-while-revalidate=300" }
]
}
],
"rewrites": [
{ "source": "/v1/catalog", "destination": "/api/v1/catalog" },
{ "source": "/v1/stats", "destination": "/api/v1/stats" }
]
}