Skip to content

Commit

Permalink
docs(cli): re-order profile to match help output (#64267)
Browse files Browse the repository at this point in the history
## Why?

Forgot to add this change in here →
#64264.

Closes NEXT-3055
  • Loading branch information
samcx authored Apr 9, 2024
1 parent 5e7e4bc commit 5ee8c4b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/02-app/02-api-reference/08-next-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -191,16 +191,6 @@ Options:
-h, --help Displays this message.
```
### Profiling
You can enable production profiling for React with the `--profile` flag in `next build`.
```bash filename="Terminal"
next build --profile
```
After that, you can use the profiler in the same way as you would in development.
### Debug
You can enable more verbose build output with the `--debug` flag in `next build`.
Expand Down Expand Up @@ -229,6 +219,16 @@ next build --no-mangling
> **Good to know**: This may affect performance and should only be used for debugging purposes.
### Profiling
You can enable production profiling for React with the `--profile` flag in `next build`.
```bash filename="Terminal"
next build --profile
```
After that, you can use the profiler in the same way as you would in development.
## Production
`next start` starts the application in production mode. The application should be compiled with [`next build`](#build) first.
Expand Down

0 comments on commit 5ee8c4b

Please sign in to comment.