import type { NextConfig } from 'next'; const nextConfig: NextConfig = { reactStrictMode: true, // Enable static export for WASM-based app (no backend required) output: 'export', // React Compiler disabled for now (requires babel-plugin-react-compiler) // experimental: { // reactCompiler: true, // }, // Disable image optimization for static export images: { unoptimized: true, }, // Bundle analyzer (conditional) ...(process.env.ANALYZE === 'true' && { webpack(config) { const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); config.plugins.push( new BundleAnalyzerPlugin({ analyzerMode: 'static', openAnalyzer: false, }) ); return config; }, }), }; export default nextConfig;