f9e4f18691
* Update analyze-bundles example * follow these updates: 1. `server` and `browser` options *9ecca7b492/packages/next-bundle-analyzer/index.js
2. "Deprecate next-bundle-analyzer" *e453804d07 (diff-5cea9b17189292d8fedc98eeda86bb0b)
3. "Move next-bundle-analyzer to Next.js repo" *42cff0a09c (diff-4e57124572a8e05f52d373c300523f6a)
* "Remove options from bundle-analyzer" * Support Windows in analyze bundles example * Remove empty webpack config from analyze bundle example *4943d844cc (r354844766)
9 lines
207 B
JavaScript
9 lines
207 B
JavaScript
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
enabled: process.env.ANALYZE === 'true',
|
|
})
|
|
|
|
const nextConfig = {
|
|
// any configs you need
|
|
}
|
|
|
|
module.exports = withBundleAnalyzer(nextConfig)
|