dotfiles/zshrc: add NODE_OPTIONS

I need this so Angular applications like DSpace's frontend don't
crash during build due to JavaScript heap memory.
This commit is contained in:
Alan Orth 2023-09-26 09:56:35 +03:00
parent 6847354160
commit 0e7a2b7b1e
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ if [[ "$OSTYPE" =~ ^linux.*$ ]]; then
# Don't show rtx version update warnings
export RTX_HIDE_UPDATE_WARNING=1
# For dspace-angular Node.js build: JavaScript heap out of memory
export NODE_OPTIONS=--max_old_space_size=4096
fi
# Enable zsh completions for rtx version manager