Skip to content

Commit

Permalink
Fix the command to run next build with Node.js --heap-prof flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mknichel committed Apr 2, 2024
1 parent 86cbc1f commit f8adf50
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 f8adf50

Please sign in to comment.