Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
fbfd1b27
Unverified
Commit
fbfd1b27
authored
Apr 02, 2024
by
mknichel
Committed by
GitHub
Apr 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the command to run next build with Node.js --heap-prof flag (#63982)
parent
52b81262
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
13-memory-usage.mdx
...ilding-your-application/06-optimizing/13-memory-usage.mdx
+1
-1
No files found.
docs/02-app/01-building-your-application/06-optimizing/13-memory-usage.mdx
View file @
fbfd1b27
...
@@ -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 n
ode_modules/next/dist/bin/n
ext 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment