(Gatsby) Building sometimes fails at Netlify, but it works properly locally

I need advice to debug deploy Netlify App

The building sometimes fails and other times works properly. I don’t really see what’s going on. I am using the Netlify CMS and I would like to have my project working properly with the Netlify CMS. I could just move the built files locally, but like that I would not be able to take maximum advantage on having the Netlify CMS.

You can find the source code here: GitHub - ositaka/design-code-tips-v2: V2 of design-code.tips

Thank you,

Hi @ositaka,

I believe this issue started with Gatsby 4.8. For some reason, it’s taking a lot more memory to process images and that’s causing the build to fail (system kills the build process).

You can try disabling AVIF and WEBP image generation from your Gatsby config to see if it helps.

1 Like

Thank you for info, appreciated and it makes sense!

I end up by making the build locally and just host the generated files on Netlify. I can anyway login in the Admin on NetlifyCMS and I am still able to write/change content; I just have to build then locally, but is also a good solution if you a e the owner of your website. Thank you again!