diff options
Diffstat (limited to 'next.config.js')
| -rw-r--r-- | next.config.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/next.config.js b/next.config.js index d9a31ee..f6aff19 100644 --- a/next.config.js +++ b/next.config.js @@ -71,6 +71,10 @@ const nextConfig = { }, }; +const withBundleAnalyzer = require('@next/bundle-analyzer')({ + enabled: process.env.ANALYZE === 'true', +}); + const withMDX = require('@next/mdx')({ extension: /\.mdx?$/, options: { @@ -79,4 +83,4 @@ const withMDX = require('@next/mdx')({ }, }); -module.exports = withMDX(nextConfig); +module.exports = withBundleAnalyzer(withMDX(nextConfig)); |
