Next.js vs Astro for Marketing Websites in 2026
Table of contents
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


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
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

Framer vs Astro, PageSpeed desktopdesignme.agency
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
Ask
Someone on the team describes the change to Claude Code, often with a screenshot of the section.
Pull request
Claude edits the repository and opens a pull request with a preview link.
Review
A person checks the preview and approves it, or sends it back with notes.
Deploy
The static build goes to Cloudflare Pages, with the redirects and form functions alongside.
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.
| Astro | Next.js | |
|---|---|---|
| How pages build | HTML and CSS, JavaScript only in islands | React end to end, static and dynamic parts mixed |
| JavaScript | Something you add | Something you manage |
| Publishing from a CMS | Rebuild in a minute or two, or live collections per page | Changes appear without a rebuild |
| Hosting | Static files on any host | Fits Vercel best, runs elsewhere |
| Server code to patch | Very little on a static site | More on a server-rendered site |
| Build with us | From $15k, 4 weeks or more | From $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
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:
Sources
- Astro docs, Islands architecture (accessed 10 October 2026) (opens in a new tab)docs.astro.build
- Astro, "Astro 6" (10 March 2026) (opens in a new tab)astro.build
- Cloudflare, "Cloudflare acquires Astro to accelerate the future of high-performance web development" (16 January 2026) (opens in a new tab)cloudflare.com
- Next.js, "Next.js 16" (21 October 2025) (opens in a new tab)nextjs.org
- Next.js docs, Static exports (updated 9 August 2026) (opens in a new tab)nextjs.org
- Vercel, "Postmortem on Next.js middleware bypass" (25 March 2025) (opens in a new tab)vercel.com
- React, "Critical security vulnerability in React Server Components" (3 December 2025) (opens in a new tab)react.dev
- HTTP Archive, Web Almanac 2024, JavaScript chapter (2024) (opens in a new tab)almanac.httparchive.org
- HTTP Archive, Web Almanac 2025, Performance chapter (CrUX data from July 2025) (opens in a new tab)almanac.httparchive.org
- Vercel, Pricing (accessed 10 October 2026) (opens in a new tab)vercel.com
- Cloudflare Pages docs, Limits (accessed 10 October 2026) (opens in a new tab)developers.cloudflare.com
Press Escape to close.


