/** * @type {import('next').NextConfig} */ const withBundleAnalyzer = require('@next/bundle-analyzer')({ enabled: process.env.ANALYZE === 'true', }); const nextConfig = withBundleAnalyzer({ output: 'export', swcMinify: false, images: { unoptimized: true, }, typescript: { ignoreBuildErrors: true, }, experimental: { appDir: true, scrollRestoration: true, }, webpack: (config) => { config.experiments = { ...config.experiments, topLevelAwait: true }; return config; }, }); module.exports = nextConfig;