Unverified Commit 8aa15a21 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

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.
parent fc61428d
...@@ -48,7 +48,7 @@ NODE_OPTIONS='--inspect' next ...@@ -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. - **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. - **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): 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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment