Comparison · 8 min read
Astro vs Next.js for a SaaS Marketing Site (2026)
In the Astro vs Next.js choice for a B2B SaaS marketing site, Astro is the better default: it ships static HTML with zero JavaScript unless a component asks for it, and it runs free on Cloudflare Pages. Next.js wins when the site behaves like an app, with logged-in views or per-visitor content. At Kuartz Studio, we run our own site on Astro and build with Next.js when a project needs it.
What is the difference between Astro and Next.js?
Astro and Next.js both render pages on the server, but they start from opposite defaults. Astro starts with plain HTML and adds JavaScript only where you ask. Next.js starts with a React application and tries to keep the browser bundle small. For a site that is mostly text, images and a few forms, the starting point decides how much you have to fight the framework.
Astro's docs describe an island as "an enhanced UI component on an otherwise static page of HTML". Everything outside an island is rendered to static HTML. A client:* directive turns a component into an interactive client island, and only that component's JavaScript loads.
Next.js takes a different route. In the App Router, layouts and pages are Server Components by default. They render on the server and send a compact payload to React in the browser. Interactive parts become Client Components with the "use client" directive, and those parts, plus everything they import, go into the client bundle.
How do they compare, criterion by criterion?
The table below compares both frameworks on the criteria that matter for a marketing site. It reflects each project's official documentation as of November 2026 and our own build experience. Neither framework is wrong for the job. The right pick depends on how much of the site is interactive and where you want to host it.
| Criterion | Astro | Next.js (App Router) |
|---|---|---|
| Default output | HTML and CSS, no client JavaScript | Server Components, with a React runtime in the browser |
| Interactivity | Opt-in islands, one component at a time | Client Components, marked with "use client" |
| Content updates | Rebuild on publish, or server rendering with an adapter | ISR, on-demand revalidation, or a rebuild |
| Sanity integration | Official @sanity/astro plugin | Sanity's Next.js packages |
| UI libraries | React, Preact, Svelte, Vue, SolidJS and AlpineJS through official integrations | React only |
| Server code | Server endpoints (API routes) with an adapter | Route Handlers in the app directory |
| Hosting without a server | Static output runs on any static host | Static export works, but loses ISR, redirects, headers and Draft Mode |
| Best fit | Content-heavy marketing pages | Marketing pages mixed with app-like or personalized views |
How do rendering models and performance differ?
Astro renders pages to static HTML at build time by default, so a visitor gets finished markup and little else. Next.js can do the same, but its React runtime and framework code come along. Both frameworks can score well on Core Web Vitals, so the real difference is how much JavaScript you must manage to get there.
On our own site, we measured JavaScript on October 24, 2026: about 33 KB gzipped on the home page and about 28 KB on the projects page. Most of that, 23.6 KB, is the animation library. The rest covers the command palette, the About modal, the project dock and the phone menu. The previous Framer version loaded about 1.3 MB of JavaScript modules. We read that gap as a result of the platform and the build, not proof that Astro always beats Next.js.
Next.js narrows the gap with its own tools. Its docs say Server Components help reduce the amount of JavaScript sent to the browser, and they advise adding "use client" only to the files that need it. A disciplined team can keep a Next.js marketing site light. The framework just does not enforce it the way Astro's defaults do.
How does each one work with Sanity?
Both frameworks work well with Sanity, so the CMS should not decide the framework. Sanity publishes an official @sanity/astro integration that exposes a configured client, embeds the Studio on a route if you want it, and supports visual editing. Next.js has its own Sanity packages for the same jobs.
There is one practical difference. Visual editing with drafts needs server-rendered pages. The @sanity/astro plugin states that Visual Editing only works for server-side rendered pages, which means an adapter and a server host. A fully static Astro site gives editors a published-content preview only, and changes appear after the next build.
Our site is in that second group. Content is read at build time, and a Sanity publish triggers a webhook that rebuilds the site. The change is live one to two minutes later. For a marketing site where editors publish a few times a week, that delay is rarely a problem. For a team that wants live draft previews, it can be.
Whichever framework you pick, the SEO fields and checks live in the Studio, and our guide to Sanity SEO and AEO fields and checks lists what to add.
If you are still choosing the CMS, our comparison of the best headless CMS options for a SaaS marketing site covers Sanity against the field, and Sanity vs Contentful goes deeper on the most common alternative.
Where can you host each one, and what does it cost?
Hosting is where the two frameworks diverge most on cost. Astro's static output runs on any static host. Next.js runs best on a platform built for it, and its full feature set needs a Node.js server or a platform adapter. That choice carries a price for a commercial site.
Vercel is the natural home for Next.js, but its free plan has a restriction. The Hobby plan is limited to non-commercial, personal use. Vercel's fair use guidelines define commercial use broadly, including a deployment that serves a business or where someone is paid to write the code. As of November 2026, Pro costs $20 per month with one deploying seat included, and each extra paid seat is $20 per month.
Cloudflare Pages is different. Its docs say requests to static assets are free and unlimited, and the Free plan allows 500 builds per month, each with a 20-minute timeout. We found no non-commercial restriction on the Free plan in Cloudflare's pages, but check Cloudflare's terms before you rely on that for your own account. We host our own site there, at no cost.
You can also host Next.js without Vercel. Next.js documents deployment to a Node.js server, a Docker container, a static export, or a platform adapter. The static export is the catch: the official guide lists Incremental Static Regeneration, redirects, rewrites, headers, Draft Mode and Server Actions as unsupported. A static Next.js site is simply a smaller Next.js.
What does ISR give Next.js that Astro lacks?
Incremental Static Regeneration lets Next.js update a static page after the site has shipped, without rebuilding everything. The ISR guide describes two modes: time-based revalidation, where a stale page is served while a new one builds in the background, and on-demand revalidation, triggered when content changes.
For a marketing site with a few hundred pages, ISR is rarely necessary. Our own site goes live one to two minutes after a publish, and Cloudflare's Free plan includes 500 builds per month. ISR starts to matter when a site has thousands of generated pages, such as integration directories or programmatic landing pages, where a full rebuild on every edit takes too long.
ISR also has a hosting requirement. The same guide lists it as supported on a Node.js server, a Docker container and platform-specific adapters, and not on a static export. If you want ISR, plan for a host that runs Next.js, and plan for its bill.
Astro answers the same need differently. It offers server-side rendering with an adapter, and server islands that render one dynamic component separately from the rest of the page. Astro's docs give a logged-in visitor's profile picture as an example, and the same pattern fits a personalized pricing table.
When does an app-like site or personalization favor Next.js?
Next.js is the stronger choice when the marketing site and the product share code, or when the page changes for each visitor. A single React codebase for the site and the app removes duplicated components. Personalization by cookie, region or account also fits Next.js, which is built to render on a server per request.
Three situations push us toward Next.js:
- Shared design system. The marketing site reuses the product's React components, and the team wants one codebase.
- Per-visitor content. Pricing, banners or hero copy change by account, region or logged-in state.
- Authenticated areas. The site includes a customer portal, a docs area behind login, or a calculator with saved state.
If none of those apply, the extra weight of a full React framework buys little. Astro can also use React: our site includes the React integration for Sanity's visual editing overlays, and we never send it to public pages. A team that loves React can still write Astro islands in React.
What about team skills and migration risk?
Pick the framework your team can maintain. A React team will move faster in Next.js on day one. A team that writes mostly HTML, CSS and a little JavaScript will find Astro closer to what it already knows. A site that nobody on the team can edit is a cost, whichever framework made it.
Do not rebuild a working site to change frameworks. If your current site ranks and loads well, a framework swap adds risk and rarely moves rankings. Our website migration SEO checklist covers what to protect if a move is justified, and our look at Webflow, Framer and coded sites says when a no-code tool is the right call.
You can see how we ship coded sites in our projects. The framework we pick follows the brief: we use Astro when pages are mostly content, and Next.js when the site needs the app-like features above.
FAQ
Is Astro faster than Next.js?
Astro sends no JavaScript by default, so a content page starts lighter: our own pages load 28 to 33 KB gzipped. Next.js can also stay light when you limit Client Components. The gap in practice depends on how much interactivity you add and how carefully the team manages it.
Can I use Next.js on Cloudflare Pages?
A static export of Next.js can be served from any static host, including Cloudflare Pages. It loses ISR, redirects, headers and Draft Mode, as the official guide states. Cloudflare's Next.js guide covers static exports on Pages and the current options for other Next.js features.
Does Sanity work better with one of them?
Sanity supports both. Astro uses the official @sanity/astro plugin, and Next.js has its own packages. Live draft preview needs server-rendered pages in either framework, so a fully static site shows changes only after a rebuild.
Can I use React inside Astro?
Yes. Astro islands can be written in React, and only the islands that need interactivity send JavaScript to the browser. The rest of the page stays plain HTML.
Sources
- Islands architecture, Astro Docs
- Server and Client Components, Next.js Docs
- How to implement Incremental Static Regeneration (ISR), Next.js Docs
- How to create a static export of your Next.js application, Next.js Docs
- Vercel Pro Plan, Vercel Docs
- Vercel Hobby Plan, Vercel Docs
- Fair Use Guidelines, Vercel Docs
- Cloudflare Pages limits, Cloudflare Docs
- Cloudflare Pages Functions pricing, Cloudflare Docs
- Deploy Next.js on Cloudflare Pages, Cloudflare Docs
- Framework components, Astro Docs
- Route Handlers, Next.js Docs
- @sanity/astro, Sanity plugins