mirror of
https://github.com/lumehq/lume.git
synced 2025-04-02 00:48:02 +02:00
29 lines
552 B
JavaScript
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;
|