Files
Folo/vercel.json
T
Innei 570506cde7 fix: hotfix vercel cache and modify chunk name to avoid cache (#904)
* fix(vercel): filter subpath

Signed-off-by: Innei <tukon479@gmail.com>

* update

---------

Signed-off-by: Innei <tukon479@gmail.com>
2024-10-12 16:02:39 +08:00

61 lines
1.3 KiB
JSON

{
"rewrites": [
{
"source": "/__debug_proxy",
"destination": "/__debug_proxy.html"
},
{
"source": "/__debug_proxy/:path*",
"destination": "/__debug_proxy.html"
},
{
"source": "/((?!assets|vendor|locales/).*)",
"destination": "/index.html"
}
],
"headers": [
{
"source": "/vendor/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=604800, immutable"
},
{
"key": "CDN-Cache-Control",
"value": "max-age=604800"
},
{
"key": "Vercel-CDN-Cache-Control",
"value": "max-age=604800"
},
{
"key": "Cloudflare-CDN-Cache-Control",
"value": "max-age=604800"
}
]
},
{
"source": "/assets/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=604800, immutable"
},
{
"key": "CDN-Cache-Control",
"value": "max-age=604800"
},
{
"key": "Vercel-CDN-Cache-Control",
"value": "max-age=604800"
},
{
"key": "Cloudflare-CDN-Cache-Control",
"value": "max-age=604800"
}
]
}
]
}