/** @type {import('next').NextConfig} */ const nextConfig = { output: "export", // Static HTML export — served via nginx/CDN reactStrictMode: true, // Enables strict mode to catch bugs early trailingSlash: true, images: { unoptimized: true, // Required for static export (no Next.js image server) }, // NOTE: async headers() is NOT supported with output:"export" // Cache-Control headers must be set at the web server level (nginx/Apache/CDN). // Recommended nginx config for production: // location ~* \.(html)$ { add_header Cache-Control "public, max-age=0, must-revalidate"; } // location ~* \.(js|css|woff2|webp|png|jpg|svg)$ { add_header Cache-Control "public, max-age=31536000, immutable"; } }; module.exports = nextConfig;