Skip to content
Back

Build failed

  • 0
  • 1
  • Cloud
RoxGame
13 Jan, 2026, 07:41

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

TL;DR
Build failed due to memory limits with large projects on Appwrite Sites. Solutions: increase Node memory, optimize dependencies, check for large files. Set NODE_OPTIONS=--max-old-space-size=4096 in Appwrite Cloud environment variables. For assistance or a more comprehensive solution, DM the support.
Flashtum
13 Jan, 2026, 07:54

This error means your Node.js application is running out of memory it's trying to use more RAM than allowed. I can help you fix this! Common causes are: Processing large files/datasets Memory leaks in your code Default heap size too small for your application What are you running when this happens? (e.g., build process, data processing, server application)

13 Jan, 2026, 08:05

A build process am using appwrite sites

13 Jan, 2026, 08:24

For the build issue: Appwrite Sites builds can hit memory limits with large projects. Quick fixes: Increase Node memory: NODE_OPTIONS=--max-old-space-size=4096 Optimize dependencies (remove unused packages) Check for large files in your build I'd be happy to help you solve this properly. Can we move this to a message? I have some specific solutions for Appwrite builds, and we can discuss how I can assist you with this project more comprehensively.

1
13 Jan, 2026, 09:30

hi thank you for reply i will try to find unused packages

13 Jan, 2026, 09:33

not sure where to set that am using appwrite cloud NODE_OPTIONS=--max-old-space-size=4096

13 Jan, 2026, 15:40

For Appwrite Cloud, you can set environment variables in your project settings: Go to your project dashboard Navigate to Settings → Environment Variables Add: NODE_OPTIONS with value --max-old-space-size=4096 If you need help setting this up or want me to take a closer look at your project, feel free to DM me I can walk you through it! <@280781630400888843>

1
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