lume/next.config.js
2023-03-25 15:26:32 +07:00

20 lines
403 B
JavaScript

const removeImports = require('next-remove-imports')();
module.exports = removeImports({
reactStrictMode: false,
swcMinify: true,
images: {
unoptimized: true,
},
typescript: {
ignoreBuildErrors: true,
},
experimental: {
scrollRestoration: true,
},
webpack: (config) => {
config.experiments = { ...config.experiments, topLevelAwait: true };
return config;
},
});