Skip to content

Commit

Permalink
Fix the command to run next build with Node.js --heap-prof flag (#63982)
Browse files Browse the repository at this point in the history
  • Loading branch information
mknichel authored Apr 2, 2024
1 parent 52b8126 commit fbfd1b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```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.
Expand Down

0 comments on commit fbfd1b2

Please sign in to comment.