Hey folks!
Thanks for following up here. “Off hours” is hard to define, as working hours on one side of the globe and off hours on the other. In short, you might be getting 6 GB RAM sometimes and 3 GB the other times. When you get 6GB, your build works, and fails the other times.
I recognize how this is not an optimal experience for you, and I think this support guide might offer some good insights here about using resources when building:
More specifically, our suggestions for this specific Gatsby V4 situation have been the following:
- Try using Gatsby <= 4.7
- Try disabling AVIF and WEBP in gatsby.config.js
- Try reducing the size of the source images
- If nothing works, deploy via CLI