
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeGood news! You can definitely automate this process. When using Astro with Vercel and Sanity, you have two main approaches to automatically update your site when content changes:
Sanity Functions are the modern, recommended way to handle this. They're serverless functions that run within Sanity's infrastructure and can trigger actions when your content changes. The big advantage here is everything stays within the Sanity ecosystem - no external hosting needed, automatic scaling, and better security.
You can set up a Function that listens for content changes and triggers a Vercel deployment. This requires:
sanity.blueprint.ts that responds to document change eventsThis is the more established method and works great for Astro sites. Here's how to set it up:
Step 1: Create a Deploy Hook in Vercel
Step 2: Set up a webhook in Sanity
Now whenever you publish content in Sanity Studio, it will automatically trigger a new Vercel deployment. The Vercel integration with Sanity also offers dashboard widgets to view recent deployments directly from Sanity.
Unlike Next.js, Astro doesn't support Incremental Static Regeneration (ISR) or on-demand revalidation on Vercel in the traditional sense. Astro is primarily a static site generator, so you need full rebuilds to see content changes. That's why the webhook → deploy hook approach is the standard solution for Astro sites.
If you need more real-time updates without full rebuilds, you could explore Astro's server-side rendering (SSR) mode with the Vercel adapter, but that changes your deployment architecture significantly.
The webhook approach is battle-tested and works reliably - once set up, your content changes will automatically trigger deployments without any manual intervention!
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.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store