diff --git a/docs/02-app/02-api-reference/08-next-cli.mdx b/docs/02-app/02-api-reference/08-next-cli.mdx index 81e5abc8a80ae..6a73faef7511b 100644 --- a/docs/02-app/02-api-reference/08-next-cli.mdx +++ b/docs/02-app/02-api-reference/08-next-cli.mdx @@ -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`. @@ -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.