Gatsby v4 works locally, but timed out on Netlify

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:

  1. Try using Gatsby <= 4.7
  2. Try disabling AVIF and WEBP in gatsby.config.js
  3. Try reducing the size of the source images
  4. If nothing works, deploy via CLI