lume/next.config.js
2023-04-20 13:34:46 +07:00

29 lines
552 B
JavaScript

/**
* @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;