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.Recommended threads
- hi guys! my site is not accesible in my ...
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...
- Delete on cascade from Cloud Function
I'm writing a Python function that deletes a user's main row from a table in my database. This row has relationships with other tables that use cascade deletion...