๐Ÿ”ฎ Sanity Create is here. Writing is reinvented. Try now, no developer setup

Automating content updates from Sanity Studio to Vercel using webhooks

5 replies
Last updated: Jun 5, 2024
Hi, Im using Sanity studio, Astro & Vercel for deployments.
If I edit my content in Sanity studio, my site content doesn't seem to update unless I trigger a deployment manually in Vercel.
Is there any way to automate this process so when I update content in Sanity studio and publish my changes the frontend is automatically updated?

Ive found a few articles on Google but none seem to fully automate the process.
Jun 5, 2024, 10:34 AM
You can add a webhook which will trigger a rebuild, or you can use SSR with Astro.
Jun 5, 2024, 11:46 AM
Ahh thank you! I did have a brief look at webhooks but I got sidetracked thinking they wouldnt do what I needed. Is the the webhooks inside the Sanity project settings your referring to? Ill take another look!
Jun 5, 2024, 12:12 PM
Exactly!You take the url from your hosting. If you are using Vercel it can be found under Project Settings > Git > Deploy hooks.
Then you will go to Sanity project > API > Webhooks
Jun 5, 2024, 12:16 PM
Perfect, thank you for your reply. Just got it set up and working ๐Ÿ™Œ
Jun 5, 2024, 12:36 PM
That's awesome. I'm glad to help.
Jun 5, 2024, 12:37 PM

Sanityโ€“ build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?