peer-at-code-web/next.config.js
2023-04-23 22:50:48 +02:00

41 lines
945 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
experimental: {
appDir: true,
scrollRestoration: true
},
headers: async () => {
return [
{
source: '/(.*)',
headers: [
{
key: 'X-Frame-Options',
value: 'DENY'
},
{
key: 'Content-Security-Policy',
value:
"default-src 'self'; script-src 'self'; font-src 'self' 'https://fonts.googleapis.com'"
},
{
key: 'X-Content-Type-Options',
value: 'nosniff'
},
{
key: 'Permissions-Policy',
value: 'camera=(); battery=(); geolocation=(); microphone=()'
},
{
key: 'Referrer-Policy',
value: 'origin-when-cross-origin'
}
]
}
];
}
};
module.exports = nextConfig;