Skip to content

Commit

Permalink
fix(fe): allocate more memory to node in devcontainer for smooth fron…
Browse files Browse the repository at this point in the history
…tend build (#2135)

fix(fe): javaScript heap out of memory
  • Loading branch information
jimin9038 authored Oct 2, 2024
1 parent 054dd60 commit f9eb23c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9eb23c

Please sign in to comment.