|
|
@@ -135,7 +135,7 @@ module.exports = async(phase, { defaultConfig }) => {
|
|
|
}
|
|
|
|
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
|
- enabled: phase === PHASE_PRODUCTION_BUILD || process.env.ANALYZE === 'true',
|
|
|
+ enabled: phase === PHASE_PRODUCTION_BUILD && process.env.ANALYZE === 'true',
|
|
|
});
|
|
|
|
|
|
return withBundleAnalyzer(withSuperjson()(nextConfig));
|