diff --git a/vercel.json b/vercel.json new file mode 100644 index 00000000..9c6e9e1c --- /dev/null +++ b/vercel.json @@ -0,0 +1,48 @@ +{ + "buildCommand": "npm run docs:build", + "installCommand": "npm ci", + "outputDirectory": "docs", + "github": { + "silent": true + }, + "cleanUrls": true, + "headers": [ + { + "source": "/(.*)", + "headers": [ + { + "key": "Content-Security-Policy", + "value": "default-src 'self'; script-src 'self' 'unsafe-inline'; connect-src 'self' data:; img-src 'self' https://img.shields.io https://github.com; style-src 'self' 'unsafe-inline'" + }, + { + "key": "X-DNS-Prefetch-Control", + "value": "on" + }, + { + "key": "Referrer-Policy", + "value": "same-origin" + }, + { + "key": "Strict-Transport-Security", + "value": "max-age=63072000; includeSubdomains; preload" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "X-XSS-Protection", + "value": "1; mode=block" + }, + { + "key": "Permissions-Policy", + "value": "geolocation=(), camera=(), microphone=(), payment=()" + } + ] + } + ] +}