import type { NextConfig } from 'next'; const nextConfig: NextConfig = { reactStrictMode: true, poweredByHeader: false, productionBrowserSourceMaps: false, compress: true, turbopack: {}, experimental: { turbopackFileSystemCacheForDev: true, turbopackFileSystemCacheForBuild: false, }, images: { formats: ['image/avif', 'image/webp'], remotePatterns: [], dangerouslyAllowSVG: false, }, async headers() { return [ { source: '/:path*', headers: [ { key: 'Strict-Transport-Security', value: 'max-age=63072000; includeSubDomains; preload', }, { key: 'X-Frame-Options', value: 'DENY' }, { key: 'X-Content-Type-Options', value: 'nosniff' }, { key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' }, { key: 'Permissions-Policy', value: 'camera=(), microphone=(), geolocation=()', }, { key: 'Cross-Origin-Opener-Policy', value: 'same-origin' }, { key: 'Cross-Origin-Resource-Policy', value: 'same-origin' }, ], }, ]; }, }; export default nextConfig;