Sanity and Astro: why we pair them for marketing sites

Sanity and Astro: why we pair them for marketing sites

We pair Sanity and Astro for content-heavy marketing sites. Sanity gives marketers a Studio built around how they publish, and Astro turns that content into fast, mostly static pages. Here's how the stack works day to day, what it costs to build and run, and when Webflow or Next.js is the better call.

Mihajlo Ivanovic
Mihajlo Ivanovic
•
Comparisons
•
Published on
11/26/2026
•
Updated on
11/26/2026

Key takeaways

  • Sanity stores the content, and Astro renders it as fast, mostly static pages, connected by an official integration that Sanity maintains.
  • In April 2026 real-user data, 67% of Astro sites passed Core Web Vitals, compared with about 49% of WordPress sites.
  • Marketers publish, edit copy, and build pages from approved blocks in Sanity Studio, while developers own new blocks, design changes, and integrations.
  • In 11 of the last 20 conversations we had with marketing teams, they said every website change needs a developer. A well-built Studio is how this stack avoids that trap.
  • Software for a six-editor site runs about $1,140 a year. The build is the real cost, and the number of page templates drives it more than anything else.
  • If your team wants to design pages visually with no developer on hand, Webflow is the better fit. For app-like products with logins, Next.js fits better.

Most marketing teams that come to us for a new site want two things that usually pull in opposite directions. They want pages that load fast and rank, and they want to publish without waiting on a developer. We build marketing sites on Webflow, Sanity, and Astro, and when content gets complex, we reach for Astro and Sanity.

Sanity holds the content, Astro turns it into fast pages, and your editors work in a Studio built around the way they publish. If you're still weighing a headless setup against a traditional CMS, start there. This guide is for teams who already lean headless and want to know whether this specific stack fits.

What do Sanity and Astro each do on a marketing site?

A Sanity and Astro site has two layers plus hosting, and each tool does one job. Knowing who does what answers most of the questions marketing leads ask us before a build.

Layer
Tool
What it does
Who works in it
Content
Sanity Content Lake
Stores every page, post, and field as structured data
Nobody directly, it works as the database
Editing
Sanity Studio
The editor where your team writes, previews, and publishes
Marketers and content editors
Frontend
Astro
Turns content into finished HTML pages
Developers
Hosting
CloudflareNetlifyVercelanother host
Serves pages to visitors
Developers, set up once

Sanity as the content backend

Sanity is a headless CMS that stores content as structured data instead of finished pages. 

Sanity saves a case study as separate fields for the client, industry, result, and quote, so the same case study can appear on the homepage, an industry page, and a resource hub. You write it once, and every page pulls from that one entry. If you want to know more, our Sanity guide covers the platform in depth.

Editors never see the database. They work in Sanity Studio, an editing app we configure for each team.

Astro as the frontend

Astro is a web framework that builds pages as finished HTML and loads JavaScript only for the parts that need it, like a pricing calculator or a demo form. Astro calls those interactive parts islands. Everything else ships as static HTML, which keeps pages fast even after a marketing team adds hundreds.

How does the official Sanity Astro integration connect them?

Sanity maintains an official integration, @sanity/astro, and according to Sanity's Astro documentation, it gives an Astro site three things:

  • A ready-made connection to your Sanity content, so developers don't have to wire it up from scratch.
  • The option to run Sanity Studio at an address on your own site, like yoursite.com/admin, so editors log in on your domain instead of a separate Sanity URL.
  • Support for Visual Editing, where editors click text on a page preview to edit it.

For a buyer, that means the company behind the CMS supports the pairing directly.

An older community package called astro-sanity is now deprecated. If an agency still builds on it, treat that as a red flag.

Why do we pair Sanity and Astro for marketing sites?

We pair them because each covers the other's weak spot. Astro is fast but has no editor, and Sanity has a flexible editor but no frontend. Five reasons make the combination our default for content-heavy marketing sites.

Fast pages by default with Astro

Astro's speed shows up in real-user data. According to Search Engine Journal's analysis of CrUX and HTTP Archive data, 67% of Astro sites passed Core Web Vitals in April 2026, against roughly 49% of WordPress sites. Astro sites also had the lowest average page weight in the comparison, at 1.65 MB.

Hosted builders like Duda and Wix scored higher in the same report, so Astro's lead is over open frameworks and traditional CMSs. For a team that needs a custom frontend, that comparison matters most.

The speed comes from sending less JavaScript to the browser, so it holds up as marketers add pages and campaigns. If your current site keeps failing its Core Web Vitals assessment, heavy scripts are the usual cause, and Astro strips most of them out by design.

Structured content you write once and reuse

Structured content lets one product description live in one place and feed the product page and a sales one-pager. Update it once and every page changes with it.

It also makes rebrands cheaper. Design lives in Astro components and content lives in Sanity, so a new visual identity means rebuilding components while every page of copy stays put. We set Sanity up around how your team publishes, with content types named after the things your marketers already talk about.

A Sanity Studio built around your team

Sanity Studio starts as a blank editor, and we shape it around the people who use it every day. For a marketing team, that usually means four things:

  • Fields named in your team's own words, with a short note under each one explaining what goes there.
  • Page builders made from your brand's blocks, so new pages stay on-brand without a designer.
  • Validation rules, like a required meta description or a character limit on titles, so a page can't go live half-finished.
  • A sidebar organized around how your team works, for example by market or by campaign.

Marketers usually notice Visual Editing first because it lets them click a headline in a live preview and jump straight to the field that controls it. Roles decide who can draft, review, and publish, and our Sanity for enterprise guide covers roles and governance in detail.

A badly built Studio feels cluttered and confusing, which is why Studio design is a full phase of our builds, with its own reviews.

Content ready for AI search

AI assistants cite content they can read and parse cleanly. Astro sends complete HTML, and Sanity stores every page as typed fields, so adding schema markup and FAQ blocks across hundreds of pages becomes a template job instead of a manual one.

We've seen what citable content is worth on our own site. AI search grew from 6.5% to 66% of our search-sourced revenue in 2026, as our case study details. Our site runs on Webflow, so the lesson is about content structure, and Sanity and Astro make that structure the default. Our guide to Sanity and AI goes deeper on structuring content for LLMs.

This stack won't guarantee AI citations, but it removes most of the technical reasons a page gets skipped.

Freedom to choose your hosting

Astro runs on Cloudflare, Netlify, Vercel, a Node server, or plain static hosting, and Sanity hosts the content side. You own the code and can move hosts without a rebuild.

Teams often ask what Cloudflare's ownership changes. Cloudflare acquired the company behind Astro in January 2026 and said Astro will remain open source and keep working whether teams host on Cloudflare or elsewhere, according to Cloudflare's acquisition announcement. 

In our view, that backing makes Astro a safer long-term bet, and we'll keep watching how much Cloudflare affects its roadmap.

How do marketers work day to day on Sanity and Astro?

In 11 of the last 20 conversations we had with marketing teams, they told us every website change needs a developer, as we wrote in our website operating model guide. Headless stacks have a reputation for making that worse. However, on a well-built Sanity and Astro site, most daily work never reaches a developer.

Task
Who does it
Where
How fast it goes live
Publish a blog post
Marketer
Sanity Studio
After the next rebuild
Edit page copy
Marketer
Sanity Studio with Visual Editing
Instantly in preview, live after the next rebuild
Update SEO fields
Marketer
Sanity Studio
After the next rebuild
Build a landing page from existing blocks
Marketer
Sanity Studio page builder
Same day
Add a new block type
Developer
Astro code and Sanity schema
Next sprint
Change the site design
Designer and developer
Astro components
Next sprint
Fix a bug
Developer
Astro code
Once it's patched and reviewed

Publishing and rebuilds

Most pages on an Astro site are static, and that's where the speed comes from. When an editor hits publish in Sanity, a webhook tells your host to rebuild the site, and the updated pages go live when the build finishes. Sanity's guide to static and server rendering in Astro describes this setup and the alternative.

Pages that need instant updates can render on each request instead, at some cost in speed and hosting. Rebuild time grows with page count, so we keep marketing pages static and server-render only the routes that need it, like previews.

Previews and Sanity visual editing

Drafts and click-to-edit previews need a server-rendered preview route, and we set that up as part of every build. Editors see a live preview next to the Studio that updates as they type, so nobody publishes blind.

Changes from AI coding tools follow the same path. An agent prepares the change and sends a preview link, and nothing goes live until someone on your team approves it.

This setup takes developer time up front. That's one reason a Sanity and Astro build costs more than a Webflow build of the same size.

What still needs a developer?

The following still needs a developer:

  • New block types
  • Design changes
  • Integrations with your CRM or product data
  • Changes to the content model

We keep it that way on purpose, because those guardrails protect your design system when twenty people can publish.

Without a team on hand, those tasks pile up in a queue that never clears. We've worked with companies that hadn't shipped a meaningful website update in 8+ months because every change sat in an engineering backlog, a pattern we cover in our WebOps guide. 

On a Sanity and Astro site, a marketer-built CMS handles the daily work, and an ongoing WebOps team handles developer tasks every week.

How much does a Sanity and Astro site cost?

Software barely moves the bill. 

  • Sanity's Free plan costs nothing for up to 20 seats, and Growth costs $15 per seat per month for up to 50 seats, with viewers free on every plan, as you can see on Sanity's pricing page. 
  • Astro is free and open source, and a static marketing site on Cloudflare runs on the free plan or $5 a month. 

Our Astro pricing breakdown puts a six-editor site at about $1,140 a year in software, and most of it goes to Sanity.

Cost item
Typical cost
What drives it
Sanity seats
$15 per editor per month on Growth
How many people edit (viewers are free)
Astro framework
$0
Nothing, it's open source
Hosting
$0 to $5 a month on Cloudflare
Server-side routes, previews, and forms
Build
$19,000 to $130,000 across our 2026 projects
The number of unique page templates
Ongoing WebOps
From $6,000 a month
Volume of new pages, blocks, and experiments

Most of the money goes into the build. Across the 21 B2B websites we built in 2026, the median project cost about $56,000, and the range ran from $19,000 to $130,000. Those figures cover every 2026 build, Webflow projects included, and our B2B website cost research breaks them down. 

Unique page templates drove price more than anything else, with 10 templates coming in at $35,000 and 20 at $75,000.

Templates weigh even more on this stack. Every Astro template needs a matching Sanity schema and Studio block, so a small set of reusable blocks keeps the build lean. If your editor count is large, our Sanity pricing guide covers seat and usage costs in detail.

When should you skip Sanity and Astro?

We tell teams when this stack is wrong for them, and three situations come up most often.

When Webflow is the better fit

If your marketers want to design and build pages visually, your content model is simple, and you have no developer on hand, choose Webflow. It's our default recommendation for those teams, and our Sanity vs Webflow comparison walks through the trade-offs.

21Shares shows what that switch can do. Their old headless setup leaned on engineers for most changes. After we moved them to Webflow, our 21Shares case study recorded these results:

  • New regions launch in about a week instead of a month.
  • New product pages go live in 1 to 2 days instead of about a week.
  • The site got 61% faster.
  • They save more than $300K a year.

A headless stack was the wrong shape for a team that needed marketing to own the site.

When Next.js is the better fit

For app-like products with logins, dashboards, or heavy real-time interactivity, Next.js is the stronger framework. Sanity pairs well with Next.js too, so the CMS choice can stay the same. Many companies run both, with Astro for the marketing site and Next.js for the product.

When developers are the only editors

If only developers publish, Astro's built-in content collections with Markdown files are often enough, and a CMS adds cost without much benefit. A simple test settles it. Count the people who will need to publish without a developer in the next 12 months, and if the answer is zero or one, skip the CMS.

How we build a Sanity and Astro site

Every Sanity and Astro build we run follows six steps:

  1. Strategy and content audit: We map what you publish, who publishes it, and which pages carry the pipeline.
  2. Content modeling in Sanity: We break your pages into reusable content types, like a case study or a webinar, and decide which fields each one needs, so the same content can appear on any page.
  3. Studio and page-block design: We build the editor and the blocks your marketers will use to assemble pages.
  4. Astro build: Developers build the templates and components, with static pages and server-rendered preview routes.
  5. Migration and redirects: Every page moves and every redirect gets tested before launch, and our Sanity migration guide covers the process step by step.
  6. Training and handoff: Your editors learn the Studio on their own content before launch day.

Astro has no visual builder, so we build the editing system around it, and we've run more than 100 migrations with the same level of checking. Astro also shipped two major versions in 2026, so our WebOps team keeps the site current after launch instead of letting it drift.

If you're weighing this stack for your next site, talk to our Astro team about whether it fits. You can also run a free AI website audit with Foresight to see where your current site loses speed and visibility.

Frequently asked questions about Sanity and Astro

Does Astro support Sanity's live content updates?

Not in the way Next.js does. The official Astro integration has no stable equivalent of the Live Content API helpers Sanity ships for Next.js, though experimental live loaders exist. For marketing sites, a webhook rebuild or server-rendered pages cover nearly every case, and editors still get live previews while they work.

Can I embed Sanity Studio inside an Astro project?

Yes. The official @sanity/astro integration can serve Sanity Studio on a route of your Astro site, like /admin, as long as the React integration is installed. Many teams still host the Studio separately so the editor and the website can be updated and deployed independently.

How long does it take to build a site with Sanity and Astro?

Most of our website builds take 8 to 16 weeks, and our two 2026 enterprise scopes were planned at 16 weeks for up to 20 templates. A Sanity and Astro build sits toward the longer end, because the content model and Studio are built from scratch. Template count, migration volume, and integrations stretch it most.

Can I move from Webflow or WordPress to Sanity and Astro without losing SEO?

Yes, if the migration keeps URLs where possible, maps a 301 redirect for every changed URL, and carries over titles, metadata, and structured data. We've run 100+ migrations with this process. Expect some ranking movement in the first weeks while search engines recrawl the site.

Who owns the code and content on a Sanity and Astro site?

You do. The Astro code lives in your repository, and the Sanity project sits in your account. You can export content as a dataset file with Sanity's command-line tool, so switching agencies doesn't mean rebuilding your content.

Is Astro still free after the Cloudflare acquisition?

Yes. Astro is still free and open source under the MIT license, and it still runs on hosts other than Cloudflare, including Netlify and Vercel. Cloudflare committed to keeping it open source when it announced the acquisition in January 2026.

Do Sanity and Astro work for multilingual sites?

Yes. Sanity supports field-level and document-level translation through official plugins, and Astro has built-in routing for localized URLs, so each language gets its own URL. Plan locales into the content model from day one, because adding them later means reworking schemas.

Mihajlo Ivanovic

SEO and Content Manager at Flow Ninja, writing on technical SEO for Webflow, programmatic SEO, and how to earn citations in AI search.

More about 
Mihajlo Ivanovic

Get for free
Foresight
Used on 5000+ websites

See your website the way a senior strategist does

Foresight scans your site across 10 strategy dimensions. You get a scored breakdown of every gap costing you leads.

Get free website audit
Clear roadmap for each category
69
Overall score
26
 issues found
Positioning
53
Differentiation
61
Target Audience
86
Website Structure
72
Social Proof
37
Conversion & Growth
60

Continue reading

All posts
Two men working on laptops at a shared desk with plants and computer monitors near a window.
Two people sitting and discussing indoors with a laptop on a glass table.
Two men working on laptops at a desk in a bright office with plants and large windows.
Close-up of a laptop keyboard and trackpad illuminated with purple and blue lighting.
Two people working on laptops having a discussion in a modern office setting.

 Ready to escape your CMS nightmare?

100+ successful migrations. 0 ranking disasters at launch. One embedded team that's done this before.

Free strategy call

Get your free resource

Enjoy your free resource!
❤️

Get a free website strategy today

Enter a valid website, e.g. yourcompany.com

Enter a valid email address.

Get my free report

Message

Free. No credit card.

Check your inbox

Your report is on its way to {email}.

Something went wrong on our side. Please try again in a minute.