/** @type {import('next').NextConfig} */ const nextConfig = { // App directory is stable in Next.js 15 images: { domains: ['localhost'], unoptimized: process.env.NODE_ENV === 'development', }, env: { CUSTOM_KEY: process.env.CUSTOM_KEY, }, async rewrites() { return [ { source: '/api/early-access', destination: '/api/early-access', }, ]; }, async headers() { return [ { source: '/:path*', headers: [ { key: 'X-Frame-Options', value: 'DENY', }, { key: 'X-Content-Type-Options', value: 'nosniff', }, { key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin', }, ], }, ]; }, // Enable static export if needed output: process.env.NODE_ENV === 'production' ? 'standalone' : undefined, }; module.exports = nextConfig;