Published: Reading time: 12 min read

Next.js vs Astro for Marketing Websites in 2026

Summarize with AI

Table of contents
  1. The short answer
  2. How each one builds a page
  3. Why we built our own site in Astro, not Next.js
  4. Performance
  5. Security and maintenance
  6. Editing and CMS
  7. Hosting and running costs
  8. Where Next.js still wins
  9. When to pick Astro
  10. Running both
  11. What we build
  12. FAQs

For a marketing website, Astro is usually the better default, and Next.js is the better choice when the site shares code with a React product or needs logged-in, per-user pages. That’s the short version of an answer we give most weeks, usually to a startup leaving Framer, Webflow or WordPress whose engineers already build the product in Next.js. If you are new to it, start with what Astro is.

We build in both at DesignMe. Here’s how we decide, with the trade-offs that matter for a marketing site rather than an app.

The short answer

Pick Astro when most pages are the same for every visitor: home, product, pricing, case studies, comparisons, blog, docs. Pick Next.js when the site is really part of the product: shared React components, logged-in pages, personalisation, or a lot of per-user or per-request content.

If you’re not sure, look at who will change the site most often. If it’s the marketing team, Astro plus a CMS is simpler to run. If it’s the product engineers, Next.js keeps them in the stack they already know.

Here’s the table we use on intro calls. Find the row that sounds most like your site; if two rows apply and they point different ways, that’s usually the sign you want both.

Situation Pick Why
Marketing site, blog and docs, same pages for every visitor Astro Ships HTML, JavaScript only where you add it
Leaving Framer, Webflow or WordPress, marketing publishes weekly Astro with a headless CMS A publish rebuilds the site in a minute or two
Programmatic pages: integrations, comparisons, industries, locations Astro One template plus a data file per page
A static page with one live piece, such as a pricing widget Astro Server islands load that piece on its own
Logged-in areas, account pages or gated content Next.js Sessions and protected routes on the server
Pages built per visitor or per request Next.js Static and dynamic parts mixed on one page
Engineers own the site and ship Next.js every day Next.js Shared components, one stack
Product in Next.js, marketing wants its own release schedule Both Astro on the main domain, Next.js on the app subdomain

The two frameworks

Show the screenshot for
Astro homepage: The web framework for content-driven websites, with logos of companies that use it
Screenshot: astro.build, captured October 2026
Next.js homepage: The React Framework for the Web
Screenshot: nextjs.org, captured October 2026

How each one builds a page

Astro renders every component to HTML and CSS at build time or on the server and strips client-side JavaScript by default. A component becomes interactive only when you add a client: directive, which Astro calls an island. Server islands (server:defer) let a static page load one dynamic piece, such as a pricing widget, separately. You can still use React, Vue or Svelte for the interactive parts.

Next.js is React end to end. Next.js 16, released in October 2025, made caching explicit with Cache Components and the "use cache" directive, so pages can mix static and dynamic parts. It can also export a fully static site, but static export drops features that need a server, including redirects, rewrites, headers, Incremental Static Regeneration, Server Actions and the default image optimisation.

The practical difference: with Astro, JavaScript is something you add. With Next.js, it’s something you manage.

Why we built our own site in Astro, not Next.js

We ran designme.agency on Framer for three years and moved it into code in October 2026. We build client sites in both frameworks, so this wasn’t a choice between the one we know and the one we don’t. We ran our own site through the same table as above, and it came out Astro on almost every row.

Here’s what the site actually is: a homepage, case studies, insights, service pages, comparisons, migration guides, industry and location pages, a few free tools and a booking page. Every one of those pages is the same for every visitor. Nobody logs in, there’s no account page and nothing changes per request. That’s the plain Astro case, and picking Next.js would have meant managing a React app (and possibly a server) for pages that never change between visitors.

These are the parts that decided it:

Static output by default. The build produces HTML and CSS. The React integration is installed for islands, but so far the interactive parts (the light and dark theme toggle, the logo tickers, the testimonial carousels on the booking pages, the scroll reveals) run on CSS and small scripts. Even the liquid logo shader we ported from Framer’s live bundle only animates while it’s on screen, and shows a still image until it draws. On Next.js we’d have started from React on every page and spent effort keeping client components off the marketing pages.

A little server code, kept off the pages. The site does need some server logic: the contact form, the referral form, and the scans behind our free AEO score and migration planner tools. Those run as small Cloudflare Pages Functions under /api, next to the static files. A handful of endpoints didn’t justify a server-rendered framework for every other page.

Hosting with almost nothing to run. Static files on Cloudflare Pages, the redirects from our Framer URL map in one _redirects file, and videos on an R2 bucket. No per-seat fees for the site and no server to patch, which counted for more after the two Next.js and React advisories in 2025 (more on those below).

Programmatic pages from data. Our comparison, migration, industry and location pages are each one template plus a typed data file per page. A new comparison is a new file, and the listing, the sitemap and /llms.txt pick it up. Next.js can do the same; it just didn’t add anything here.

Third-party scripts on our terms. The Cal.com booking embed loads only on click or when the calendar scrolls into view, with zero cal.com requests before that. Google Tag Manager loads only after a visitor allows analytics or marketing cookies. On a static site, nothing else runs unless we put it there.

What our site needed How it runs on Astro Needed Next.js?
Pages that are the same for every visitor Static HTML built at deploy No
Contact and referral forms, two free tools that scan a URL Cloudflare Pages Functions under /api No
Booking Cal.com embed loaded on click or scroll No
Motion, tickers, carousels, liquid logos CSS and small scripts, shader ported from Framer No
Comparison, migration, industry and location pages One template each plus typed data files No
63 live Framer URLs Same paths, 301s in _redirects at the host No
Edits from the team Claude Code opens a pull request with a preview No

Here’s what it bought us on the homepage, measured on production with PageSpeed Insights on desktop: the page went from 10.33MB and 512 requests on Framer to 0.52MB and 75 requests on Astro, and largest contentful paint from 2.5 seconds to 0.5. On mobile the Performance score went from 58 to 91. These are lab numbers; real-user data for the Astro site arrives in mid-November 2026, and the full tables are in our Framer to Astro migration results. Along the way we kept all 63 live URLs and moved 1,378 images and files off Framer’s CDN.

63
live URLs kept on the same paths
10.33MB → 0.52MB
homepage page weight (desktop)
512 → 75
requests on first load
1,378
images and files moved off Framer’s CDN
Framer10.33MB
Astro0.52MB
PageSpeed Insights, desktop, median of 3 runs, 17 October 2026. Full method in our Framer to Astro migration results.

To be fair to Next.js: most of that gap is a hand-built site against a hosted builder, not Astro against Next.js. A careful Next.js build with static pages could get close. What Astro changed for us is how little effort it takes to stay there as we keep adding pages.

What would have changed our mind: a logged-in client area, components shared with a product of ours, or content that changes per visitor. We’d have built those parts in Next.js, most likely on a subdomain next to an Astro marketing site. We don’t have a product app behind the marketing site, so none of that applied. The full story of the move, with what we’d do differently, is in Framer limitations for startups.

Our homepage, before and after Astro

Performance

Both can produce fast pages. The difference is how much effort it takes to keep them fast as marketing adds sections, embeds and experiments.

For context, the median mobile page shipped 558KB of JavaScript in 2024, according to the HTTP Archive’s Web Almanac, and only 48% of mobile sites passed all three Core Web Vitals in July 2025. Astro starts from zero JavaScript and grows only where you add islands. A Next.js marketing site needs a team that keeps an eye on client components and third-party scripts.

The usual way a marketing site gets slow is gradual: a chat widget, a video in the hero, an A/B testing script, a few third-party embeds. On Astro each of those is a decision you make in one place (an island, a lazy-loaded embed or a tag behind consent). On Next.js the same additions often land as client components inside a React tree, and someone needs to watch the bundle as they pile up.

Light HTML also helps with answer engines, since many AI crawlers don’t run JavaScript. Our AEO score tool checks how your current site reads to them.

Security and maintenance

A marketing site that is static HTML on a CDN has very little server code to attack or patch. A server-rendered site has more.

In March 2025, Next.js disclosed CVE-2025-29927, a flaw that let attackers bypass middleware, for example to reach protected routes. Self-hosted apps were affected, while static exports and sites on Vercel were not. In December 2025, the React team disclosed CVE-2025-55182, an unauthenticated remote code execution flaw in React Server Components rated 10.0 out of 10, which affected Next.js 15 and 16 apps until they were patched.

Both were patched quickly, and Next.js is still a sound choice for products. The point for a marketing site is simpler: if it doesn’t need a server, don’t give it one. Whichever you choose, someone has to own dependency updates.

Editing and CMS

Neither framework is an editor. Marketers work in a headless CMS. Sanity is our usual pick, with next-sanity on Next.js and the official @sanity/astro integration on Astro, and editors can run Sanity Studio on your own domain.

The difference is how a publish reaches the site. On Next.js, published changes can appear without a rebuild. On a static Astro site, a publish triggers a rebuild that usually takes a minute or two. Astro 6 added live content collections for pages that must update the moment content changes, so you can choose per page.

Both are also good for AI coding agents. The site is plain files, so Claude Code or Cursor can make a change and open a pull request with a preview. Astro has an official docs MCP server, and Next.js 16 added a DevTools MCP server for agents.

Our own site has no CMS. Insights are Markdown files in the repository and the rest of the content is typed data, so every change goes through the same loop:

How a change ships on our site

  1. Ask

    Someone on the team describes the change to Claude Code, often with a screenshot of the section.

  2. Pull request

    Claude edits the repository and opens a pull request with a preview link.

  3. Review

    A person checks the preview and approves it, or sends it back with notes.

  4. Deploy

    The static build goes to Cloudflare Pages, with the redirects and form functions alongside.

Nothing goes live without a person approving the preview.

That loop suits a team where everyone is comfortable reviewing a preview. If your marketers want to publish a post on their own on a Friday afternoon, give them a CMS on either framework.

Hosting and running costs

Astro builds to static files that run on any host, and adapters cover server rendering on Cloudflare, Netlify, Vercel and Node. Cloudflare acquired the Astro team in January 2026 and said Astro stays open source and works with any host.

Next.js fits Vercel best and runs elsewhere too. Vercel’s Hobby plan is for personal, non-commercial use, and Pro costs $20 a month per developer seat, so a company site needs a paid plan or another host. Cloudflare Pages’ free plan includes 500 builds a month, which covers most marketing sites that rebuild on publish.

We host our own site on Cloudflare Pages: the static build, our redirects and the few form functions in one project, with videos on R2. For most marketing sites, hosting is small next to the build.

Topic, Astro, Next.js
AstroNext.js
How pages buildHTML and CSS, JavaScript only in islandsReact end to end, static and dynamic parts mixed
JavaScriptSomething you addSomething you manage
Publishing from a CMSRebuild in a minute or two, or live collections per pageChanges appear without a rebuild
HostingStatic files on any hostFits Vercel best, runs elsewhere
Server code to patchVery little on a static siteMore on a server-rendered site
Build with usFrom $15k, 4 weeks or moreFrom $15k, 4 weeks or more

Where Next.js still wins

Astro was right for our site because our site is all marketing. Plenty of startup sites aren’t, and that’s where Next.js is the better tool, and where we build in it for clients.

The site is really part of an app. If the “website” includes onboarding, a quote builder, a configurator or anything with state that follows the visitor from page to page, you’re building a React app. Next.js gives you routing, data fetching, Server Actions and caching for that in one framework. In Astro you’d be wiring islands together and working against the model.

Authentication. Logged-in pages, account settings, gated content and customer portals need sessions and protected routes on the server, and Next.js is built for that. Keep it patched (the 2025 middleware flaw sat exactly in that layer). Astro can render on the server with an adapter, but once logged-in pages are the core of the site, you’re using Astro for the part it’s least built for.

Dynamic data per request. Prices that depend on a visitor’s plan or region, dashboards, search results, or thousands of pages generated from a database on demand. Next.js 16’s Cache Components let one page mix cached and per-request parts. Astro’s server islands handle one dynamic piece on an otherwise static page; when most of the page is dynamic, Next.js is the better fit.

Shared code with the product. When the product is Next.js and the same engineers own the marketing site, one stack means one React design system, shared components, shared auth and one set of conventions. Let’s say a Series A founder’s product team ships the dashboard in Next.js every day and the marketing site needs the same pricing table and sign-up flow as the app: building it in Next.js saves maintaining those twice. The cost is the release cycle, so keep marketing pages static or cached and give them their own deploys.

In short, pick Next.js when:

  • The marketing site and the product share components, a design system or authentication.
  • There are logged-in areas, account pages or gated content.
  • Pages are personalised per visitor, or there are thousands of pages generated per request.
  • Your engineers will own the site and already ship Next.js every day.

When to pick Astro

  • Most pages are the same for every visitor.
  • The marketing team publishes often through a CMS and wants pages to stay fast as they add to them.
  • You want programmatic pages from data files: integrations, comparisons, industries, locations.
  • You want the lowest running cost and the least server code to maintain.

This also holds outside SaaS. A hardware or industrial company with a catalogue of product and spec pages, or a DTC brand whose marketing site sits next to a store, usually wants static pages that load fast on a phone, which is where Astro is strongest.

Running both

Some teams run both, and it’s often the cleanest setup. Astro runs the main domain for marketing, blog and docs, and Next.js runs the app subdomain. They share design tokens, so visitors see one company, and the marketing site ships on its own schedule without waiting for an app release.

Running both

  • Astro

    The main domain

    Marketing, blog and docs

  • Next.js

    The app subdomain

    The product

Both share design tokens, so visitors see one company

The marketing site ships on its own schedule without waiting for an app release.

What we build

We build on both, and the framework doesn’t change our starting price. Coded builds on Astro or Next.js with a headless CMS start from $15k and usually take 4 weeks or more, from content model to launch, with a redirect map, a performance check and docs for your team and agents. See Astro development, Next.js development and the full ranges on our pricing page.

If you’re coming from a builder, our comparisons of Framer vs Next.js and Webflow vs Next.js cover that step, and Framer limitations for startups covers when to make the move. Leaving WordPress? Start with our headless migration guide and the migration paths.

DesignMe designs and builds marketing sites in Astro and Next.js for funded startups and B2B companies. If you’re choosing between them, send us your site and your product stack and we’ll reply within one business day, or book a 30-minute call with Adrian:

designme.agency/intro

Need more info?

Questions about Next.js vs Astro

Adrian

Can't find your answer?

Book a call and let's talk.

Or email us  hello@designme.agency

Is Astro or Next.js better for a marketing website?

For most marketing sites, Astro. It renders pages to HTML and ships no client-side JavaScript unless a component needs it, which keeps pages light and easy for search engines and AI crawlers to read. Next.js is the better choice when the site shares components with a React product, has logged-in areas or needs many per-user pages.

Can we use Next.js for the marketing site if our product is built in Next.js?

Yes, and sharing components and a design system is a good reason to. Just keep the marketing pages static or cached so they stay fast, and keep the marketing site's release cycle separate from the product's so a landing page change doesn't wait on an app deploy.

Can you run Astro for the marketing site and Next.js for the app?

Yes. A common setup is Astro on the main domain for marketing, docs and blog, and Next.js on an app subdomain for the product. Both can share design tokens, so the two still look like one company.

Which is easier for marketers to edit, Astro or Next.js?

Neither on its own. Both connect to a headless CMS such as Sanity, where editors work in a familiar interface. On Next.js published changes can appear without a rebuild; on a static Astro site a publish triggers a rebuild that usually takes a minute or two.

How much does an Astro or Next.js marketing site cost?

At DesignMe, coded builds on Astro or Next.js with a headless CMS start from $15k and usually take 4 weeks or more. The framework doesn't change the starting price; page count, content model and integrations do.

You've reached the end, so now…

Tell us what you’re building.

We’ll help you map the right scope, team, timeline, and next steps.

Book a call