Initial commit

This commit is contained in:
skidoodle 2023-09-15 21:11:43 +02:00
parent e02071ead0
commit f7a8512076
13 changed files with 5027 additions and 4244 deletions

View file

@ -1,6 +1,46 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}
const securityHeaders = [
{
key: 'X-DNS-Prefetch-Control',
value: 'on',
},
{
key: 'X-XSS-Protection',
value: '1; mode=block',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'Referrer-Policy',
value: 'strict-origin',
},
{
key: 'Content-Security-Policy',
value: `frame-ancestors 'self';`,
},
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN',
},
{
key: 'Strict-Transport-Security',
value: 'max-age=31536000; includeSubDomains; preload',
},
{
key: 'Permissions-Policy',
value: 'camera=(), microphone=(), geolocation=()',
},
]
module.exports = nextConfig
module.exports = {
async headers() {
return [
{
source: '/:path*',
headers: securityHeaders,
},
]
},
reactStrictMode: true,
}