Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

mknichel
Copy link
Member

@mknichel mknichel commented Apr 2, 2024

No description provided.

@mknichel mknichel requested review from a team as code owners April 2, 2024 15:45
@mknichel mknichel requested review from ismaelrumzan and StephDietz and removed request for a team April 2, 2024 15:45
@mknichel mknichel requested a review from manovotny April 2, 2024 15:45
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should suggest NODE_OPTIONS instead, like the section below.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately you can't: node: --heap-prof is not allowed in NODE_OPTIONS

@styfle styfle merged commit fbfd1b2 into canary Apr 2, 2024
32 checks passed
@styfle styfle deleted the mknichel/debug-memory-fix-heap-prof-docs branch April 2, 2024 18:25
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants