Add vercel config file

This commit is contained in:
2022-07-26 23:42:03 +02:00
parent d67eade6fb
commit 6c1c7d7ee6

21
vercel.json Normal file
View File

@@ -0,0 +1,21 @@
{
"headers": [
{
"source": "/(.*)",
"headers": [
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "X-Frame-Options", "value": "SAMEORIGIN" },
{ "key": "X-XSS-Protection", "value": "1; mode=block" },
{ "key": "Strict-Transport-Security", "value": "max-age=31536000; includeSubDomains; preload" },
{ "key": "Referrer-Policy", "value": "no-referrer-when-downgrade" },
{ "key": "Feature-Policy", "value": "geolocation 'self'" }
]
},
{
"source": "/:all*(woff2?|jpe?g|png|gif|svg|js|xml|txt|json|css|mp4|webm|avif)",
"headers": [
{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }
]
}
]
}