Skip to content

Commit

Permalink
fix: increase doc ram (#1400)
Browse files Browse the repository at this point in the history
Large projects can cause OOMs so increase default ram to reduce
config duplication.
  • Loading branch information
achingbrain authored Oct 30, 2023
1 parent 6020be8 commit 88758ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ const docs = async (ctx, task) => {
{
localDir: path.join(__dirname, '..'),
preferLocal: true,
all: true
all: true,
env: {
// large projects can cause OOM errors
NODE_OPTIONS: '--max_old_space_size=8192'
}
}
)
proc.all?.on('data', (chunk) => {
Expand Down

0 comments on commit 88758ba

Please sign in to comment.