From 87d060e68cfa3b16df35e9d58c836b20af45e514 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 16 Jun 2026 03:03:38 -0400 Subject: [PATCH] fixes for frontend build (#1660) --- frontend/apps/artcraft-webapp/script/netlify_build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/apps/artcraft-webapp/script/netlify_build.sh b/frontend/apps/artcraft-webapp/script/netlify_build.sh index fcbd9e9482..28daec07ad 100755 --- a/frontend/apps/artcraft-webapp/script/netlify_build.sh +++ b/frontend/apps/artcraft-webapp/script/netlify_build.sh @@ -1,6 +1,12 @@ #!/bin/bash -set -euxo pipefail +set -euxo pipefail + +# The webapp bundles every workspace lib's source into one large bundle, and the +# vite-plugin-top-level-await (swc) transform over it exhausts V8's default heap on +# Netlify's builder ("Reached heap limit / heap out of memory"). Raise the heap ceiling +# for the build. (Caps don't pre-allocate; tasks only use what they need.) +export NODE_OPTIONS="${NODE_OPTIONS:-} --max-old-space-size=8192" echo "Run build script (TODO: Make strict)" nx build artcraft-webapp