Gatsby Site Showed Old Content Despite Sanity Update, Due to Missing Production Build
A team running Sanity for content, Gatsby for page generation, and Netlify for hosting found that a revised article published in Sanity did not appear on their live site. Production builds do not automatically pick up CMS changes, since Gatsby's watch mode is only active in development. Netlify's deploy history confirmed no new build had run after the Sanity publication, so the live page kept serving the previously generated HTML. Triggering a fresh production build resolved the issue. The team plans to connect Sanity and Netlify with a webhook or build hook, though this is not yet set up.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in