Hello everyone. I have good news! It turns out it was not a memory issue after all, but was a bug in Gatsby. It doesn’t appear when building locally because most people are using multi-core machines and the bug only appears when using a single worker, which builds do on Netlify. We worked with the Gatsby team to release a fix which went out today. If you update your site to gatsby@4.13.1
then it should fix the problem.
2 Likes