41 lines
945 B
JavaScript
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;
|