
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeNot a dumb question at all! This is actually one of the most common questions when working with static site generators like Gatsby. Let me break down your options:
The Short Answer: With traditional Gatsby static site generation (SSG), you'll need to rebuild to see content updates. However, there are several approaches to make this seamless or even eliminate rebuilds in some cases.
1. Automated Rebuilds with Webhooks (Most Common)
The standard approach is to set up webhooks in Sanity that automatically trigger a Netlify build whenever you publish content changes:
This gives you the benefits of static site generation (speed, security, low cost) while keeping content updates relatively quick.
2. Gatsby's Server-Side Rendering (SSR)
Gatsby v4+ supports SSR using getServerData(), which fetches fresh content on every page request—no rebuild needed. However, there's a significant caveat: Netlify's support for Gatsby SSR is limited. You'll need the @netlify/plugin-gatsby and it only works in production, not during local development.
3. Deferred Static Generation (DSG)
DSG generates pages on-demand when first requested, then caches them. This helps with large sites but doesn't solve the content update problem—you'll still need rebuilds to update existing pages.
4. Client-Side Data Fetching
For specific dynamic sections (like a "latest projects" widget), you can fetch data directly from Sanity's Content Lake API using JavaScript on the client side. The rest of your site remains static.
Use automated webhooks with Netlify build hooks. It's the most reliable, well-supported approach for Gatsby + Netlify. Here's why:
If you absolutely need instant updates without any build step, you might want to consider Next.js instead, which has much better SSR support and works excellently with both Vercel and Netlify.
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