fix(site): enable Nitro skew protection and fix assets Cache-Control value (#5304)

Claude-Session: https://claude.ai/code/session_01G9u8FfuEnhMTXSiKPJV3kb

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Eric Fennis
2026-11-26 10:25:38 +01:00
committed by GitHub
co-authored by Claude
parent f1495d15d1
commit 4d55546d15
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -1,6 +1,11 @@
export default defineNitroConfig({
compatibilityDate: '2026-02-26',
preset: 'vercel',
vercel: {
// Sets the `__vdpl` cookie on page loads, so Vercel serves later asset and page chunk
// requests from the same deployment. Needs Skew Protection enabled in the Vercel project.
skewProtection: true,
},
srcDir: '.vitepress',
ignore: ['.vitepress/plugins'],
routeRules: {
+1 -1
View File
@@ -174,7 +174,7 @@
"headers": [
{
"key": "Cache-Control",
"value": "cache-control: public, max-age=31536000, immutable"
"value": "public, max-age=31536000, immutable"
}
]
},