From 0e7a2b7b1e1843d812a52dc83e2d7619eb6e8162 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 26 Sep 2023 09:56:35 +0300 Subject: [PATCH] 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. --- dotfiles/zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 3a3b08e..8a078e3 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -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