I am trying to deploy a Gatsby+Sanity homepage to Netlify. Both the Gatsby homepage and the Sanity CRM is runnig fine locally but I keep getting this error when I try to deploy it online.
This is an official build from a the Gatsby developer team. I closely followed their setup steps-https://github.com/gatsbyjs/gatsby-starter-sanity-homepage-ts
For me, reverting
gatsby-source-sanity
to 7.6.3 resolved the issue. I believe 7.7.0 introduced a bug that affects the starter.