From 6c1c7d7ee69c6902572824237c555d85c5f173bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Tue, 26 Jul 2022 23:42:03 +0200 Subject: [PATCH] Add vercel config file --- vercel.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..9f9f663 --- /dev/null +++ b/vercel.json @@ -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" } + ] + } + ] +} \ No newline at end of file