Skip to content
Init is here / May 19 - 23
Back

Adjusting Node Heap limit on Appwrite Sites

  • 0
  • Self Hosted
MYND
22 May, 2025, 21:56

I am running into a build issue with Appwrite Sites. I'm trying to build and deploy one of my Nuxt applications, and I am getting a failed deploy every time. The last few lines are

TypeScript
<--- Last few GCs --->

[117:0x1521ee236000]    70187 ms: Scavenge (reduce) (interleaved) 943.3 (973.3) -> 942.9 (969.0) MB, pooled: 0 MB, 6.52 / 0.00 ms  (average mu = 0.247, current mu = 0.211) allocation failure; 
[117:0x1521ee236000]    71380 ms: Mark-Compact (reduce) 946.3 (969.0) -> 922.9 (959.0) MB, pooled: 0 MB, 16.49 / 0.00 ms  (+ 1175.3 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1207 ms) (average mu = 0.252, cu

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

bash: line 1:   106 Aborted                 (core dumped) npm run build

I am running this on a server with 32 cores and 96GB Ram. Is there a way we can set an ENV Variable for Node options like NODE_OPTIONS="--max-old-space-size=4096" or more?

TL;DR
Developers are encountering JavaScript heap out of memory error when building and deploying Nuxt applications on Appwrite Sites. To resolve this, they can set an environment variable for Node options like `NODE_OPTIONS="--max-old-space-size=4096"` to adjust the Node Heap limit.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more