Files
vercel/vercel.json
Nathan Rajlich a93383cf2e Remove ENABLE_VC_BUILD from Vercel deployment (#8876)
This env var is no longer necessary.
2022-11-09 07:29:05 +00:00

46 lines
988 B
JSON

{
"$schema": "https://openapi.vercel.sh/vercel.json",
"rewrites": [
{
"source": "/",
"destination": "/api/frameworks"
},
{
"source": "/api/v1/frameworks",
"destination": "/api/frameworks"
},
{
"source": "/api/examples/list",
"destination": "/list.json"
},
{
"source": "/api/examples/list-all",
"destination": "/list-all.json"
}
],
"github": {
"silent": true,
"autoJobCancelation": true
},
"headers": [
{
"source": "/api(/v[0-9]+)?/frameworks",
"headers": [
{
"key": "cache-control",
"value": "public, max-age=60, s-maxage=500, stale-while-revalidate=500, stale-if-error=500"
}
]
},
{
"source": "/api/examples(.*)",
"headers": [
{
"key": "cache-control",
"value": "public, max-age=60, s-maxage=86400, stale-while-revalidate=86400, stale-if-error=86400"
}
]
}
]
}