diff --git a/next.config.js b/next.config.js index f404c1a0..4520e734 100644 --- a/next.config.js +++ b/next.config.js @@ -38,6 +38,13 @@ const nextConfig = { ...process.env.NEXT_PUBLIC_STATICALLY_OPTIMIZE === '1' && { experimental: { ppr: true }, }, + webpack: (config) => { + config.optimization ??= {}; + if (process.env.NODE_ENV !== 'production') { + config.optimization.minimize = false; + } + return config; + }, }; const withBundleAnalyzer = require('@next/bundle-analyzer')({