diff --git a/next.config.js b/next.config.js index 2a4e58c5..10d8f17e 100644 --- a/next.config.js +++ b/next.config.js @@ -1,8 +1,9 @@ -const path = require('path') - -module.exports = { +const withBundleAnalyzer = require('@next/bundle-analyzer')({ + enabled: process.env.ANALYZE === 'true', webpack (config, _) { config.resolve.alias['@'] = __dirname return config } -} +}) + +module.exports = withBundleAnalyzer