From 72bb85f700e4050575d6ee36a1211cbfd4b4f0e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?H=C3=A5vard=20Thom?= <haavardthom91@hotmail.com>
Date: Sun, 27 Oct 2024 23:19:35 +0100
Subject: [PATCH] Adjust max-old-space-size in openwebui-install.sh

---
 install/openwebui-install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/install/openwebui-install.sh b/install/openwebui-install.sh
index 94e14c3b..31930cb5 100644
--- a/install/openwebui-install.sh
+++ b/install/openwebui-install.sh
@@ -52,7 +52,7 @@ ENABLE_OLLAMA_API=false
 OLLAMA_BASE_URL=http://0.0.0.0:11434
 EOF
 $STD npm install
-export NODE_OPTIONS="--max-old-space-size=4096"
+export NODE_OPTIONS="--max-old-space-size=3584"
 $STD npm run build
 msg_ok "Installed Open WebUI"