mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-12-02 16:49:06 +00:00
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:
@@ -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
@@ -174,7 +174,7 @@
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
"value": "cache-control: public, max-age=31536000, immutable"
|
||||
"value": "public, max-age=31536000, immutable"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user