Unverified Commit fbfd1b27 authored by mknichel's avatar mknichel Committed by GitHub

Fix the command to run next build with Node.js --heap-prof flag (#63982)

parent 52b81262
...@@ -20,7 +20,7 @@ To look for memory issues, you can record a heap profile from Node.js and load i ...@@ -20,7 +20,7 @@ To look for memory issues, you can record a heap profile from Node.js and load i
In your terminal, pass the `--heap-prof` flag to Node.js when starting your Next.js build: In your terminal, pass the `--heap-prof` flag to Node.js when starting your Next.js build:
```sh ```sh
node --heap-prof next build node --heap-prof node_modules/next/dist/bin/next build
``` ```
At the end of the build, a `.heapprofile` file will be created by Node.js. At the end of the build, a `.heapprofile` file will be created by Node.js.
......
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