Add note that next build output is compressed. (#37228)

When you run `next build`, the sizes you're seeing in the output are the compressed sizes with gzip.
This commit is contained in:
Lee Robinson 2022-05-26 17:53:17 -05:00 committed by GitHub
parent fc61428db1
commit 8aa15a21f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ NODE_OPTIONS='--inspect' next
- **Size** The number of assets downloaded when navigating to the page client-side. The size for each route only includes its dependencies.
- **First Load JS** The number of assets downloaded when visiting the page from the server. The amount of JS shared by all is shown as a separate metric.
The first load is indicated by green, yellow, or red. Aim for green for performant applications.
Both of these values are **compressed with gzip**. The first load is indicated by green, yellow, or red. Aim for green for performant applications.
You can enable production profiling for React with the `--profile` flag in `next build`. This requires [Next.js 9.5](https://nextjs.org/blog/next-9-5):