Sanity "Webhook" to a Vercel "Deploy URL" Trigger Not Working

2 replies
Last updated: Jun 8, 2021
Hi Sanity - we've connected a Sanity "Webhook" to a Vercel "Deploy URL" to trigger a redeploy any time our content changes. Interestingly, we've noticed that Vercel is rebuilding with the old version of our content. If we rebuild again a few minutes later, it gets the new content.
Is there any chance your Sanity's webhooks are firing before the change is visible to Vercel?
Jun 8, 2021, 9:13 PM
uhh that could be the case if you’re pull from the CDN’ed sanity endpoint. do you have
useCdn: false
set? see here
Jun 8, 2021, 10:49 PM
That was it, thank you
Jun 8, 2021, 11:11 PM

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?