We've released the Enterprise CLI for seamless deployments of Next.js projects on the AWS with complete IaC (Terraform) setup. Learn more
Blazity Logo
Development

Bundle Analyzer

Overview of the bundle analyzer

next-enterprise integrates the @next/bundle-analyzer package to provide manual bundle size analysis for the project.

package.json

Getting started

To run the bundle analyzer, you can use the analyze script, which will start the analyzer in the interactive mode.

pnpm run analyze

This will run the production-mode build and start the analyzer as a local web pages where you can see the bundle size of the project accross various environments (Client, Server, Edge).

Read more about the bundle analyzer in the Next.js documentation.

On this page