From 7be53085b12fb9c19bf4d7ac0f649b87971361db Mon Sep 17 00:00:00 2001 From: achingbrain Date: Mon, 30 Oct 2023 09:16:53 +0000 Subject: [PATCH] fix: increase doc ram Large projects can cause OOMs so increase default ram to reduce config duplication. --- src/docs.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/docs.js b/src/docs.js index 962ec8d44..a40964e98 100644 --- a/src/docs.js +++ b/src/docs.js @@ -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) => {