rsnext/examples/analyze-bundles/next.config.js
Qurage f9e4f18691 Update example analyze bundles (#9645)
* 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)
2019-12-07 15:33:08 +01:00

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)