From f9eb23c1860e4a2ccd8d4bff4f3e2dbc99bfbda8 Mon Sep 17 00:00:00 2001 From: Jimin Ha Date: Thu, 3 Oct 2024 01:34:08 +0900 Subject: [PATCH] fix(fe): allocate more memory to node in devcontainer for smooth frontend build (#2135) fix(fe): javaScript heap out of memory --- scripts/setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/setup.sh b/scripts/setup.sh index 02cc1e28ab..14d323776f 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -67,6 +67,9 @@ pnpm exec lefthook install # Init MinIO pnpm run init:storage +# Set NODE_OPTIONS to increase memory limit for frontend build (next build) +echo "export NODE_OPTIONS=--max-old-space-size=4096" >> ~/.bashrc + # Enable git auto completion if ! grep -q "bash-completion/completions/git" ~/.bashrc then