Heap out of memory during build #3735
Unanswered
Arctomachine
asked this question in
Sanity Studio Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to host studio on low memory (1 GB) VPS using docker-compose.
Running
sanity build
script fails withFATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
during- Minifying JavaScript bundles
step.What can I do to be able to run it successfully?
I tried to apply
--max-old-space-size=2048
, as it was suggested in multiple sources. I tried 2 different approaches,yarn build --max-old-space-size=2048
inside dockerfile andsanity --max-old-space-size=2048 build
inside package.json, but neither of them made it work.Beta Was this translation helpful? Give feedback.
All reactions