Over the last two years, I've built three websites from scratch. All three started out on Next.js.
Two of them now run on Astro.
And the three projects make one thing very clear:
A blog needs something completely different from a web app.
If you're facing the same question right now, I can save you a few detours. In this article, I'll show you how Astro and Next.js really differ, what that means for your blog, what hosting costs, and how to start your project.
- For blogs, magazines, and content websites, I clearly recommend Astro. It delivers plain HTML without JavaScript out of the box and runs almost everywhere for free.
- Next.js is worth it when your website is more of an app, meaning one with login, shop, member area, or dashboards.
- Both frameworks cost nothing, the difference is in operation: A static Astro site runs as plain files almost anywhere, while Next.js needs a Node.js server or Docker for all its features.
1. In short: Astro for blogs, Next.js for apps
Here is my answer before we get into the details.
Are you building a blog, a magazine, a company website, or a portfolio? Then go with Astro. Astro renders every page to finished HTML out of the box and sends no JavaScript to the browser unless you explicitly want it.
Are you building an application instead, where users log in, buy something, save progress, or edit data? Then Next.js is the better choice. It is built for exactly these kinds of sites.
My own websites show this quite well:
- faminino.de: A family blog. It ran on WordPress first, then on Next.js, and since October 2026 on Astro.
- gradually.ai: My AI blog with lots of comparison pages. Launched in June 2025 on Next.js, on Astro since September 2026.
- blogmojo.de: This very website. I moved it from WordPress to Next.js, and it still runs on it today.
Wait a moment. Why does blogmojo.de of all sites still run on Next.js?
Because it's not just a blog. There's a course area with login, 38 tools, and many API routes. That is exactly the app part Next.js is made for.
Yes, really:
For a pure blog, I wouldn't choose Next.js today.
2. What Astro and Next.js actually are
Before we compare them, a quick overview. Both are web frameworks, meaning toolkits of code you use (or an AI agent like Claude Code uses) to build a website. Unlike WordPress, there's no dashboard and no database out of the box. Your content lives as files in the project.
2.1 Astro
Astro is a framework for content-heavy websites. Why does that matter? Because it was designed from the start to send as little as possible to the browser. Every page is turned into static HTML at build time.
You add interactive parts (e.g. a calculator, a search, or an image carousel) as so-called islands. These are individual components that get JavaScript while the rest of the page stays static.
The current version is Astro 7.4, released on October 15, 2026. In January 2026, Cloudflare took over the team behind Astro. Astro remains open source under the MIT license, though, and can still be hosted at any provider.
2.2 Next.js
Next.js is a framework for React applications. Why does that matter? Because everything from the landing page to the dashboard with login runs in a single React app.
Next.js can mix static, dynamic, cached, and streamed pages. Server Components keep a lot of code on the server, while interactive parts run as Client Components in the browser.
The current version is Next.js 16.4 from October 6, 2026. New projects have started with Cache Components since then, a new caching model that is meant to become the default for everyone with Next.js 17.
3. The most important difference: JavaScript in the browser
If you remember only one thing from this article, make it this:
Astro sends no JavaScript to the browser out of the box. Next.js sends React along to the browser.
With Next.js, React “hydrates” the page in the browser. Hydrating means the browser loads the page's JavaScript afterwards and uses it to make the finished HTML interactive. Why does that matter? Because this JavaScript has to be loaded and executed even when your article ends up showing nothing but text and images.
I measured how big the difference is myself for this article. I took a small WordPress demo with 8 posts and 3 pages and migrated it once to Astro and once to Next.js with my migration skill. Both versions show exactly the same content. Then I loaded one post three times and measured it with Lighthouse:
| One blog post | Astro | Next.js |
|---|---|---|
| JavaScript files | 0 | 9 |
| JavaScript transferred | 0 KB | 188 KB |
| JavaScript unpacked | 0 KB | 593 KB |
| Total requests | 5 | 34 |
| Lighthouse Performance (mobile) | 100 | 97 |
| Largest Contentful Paint (mobile) | 1.5 s | 2.6 s |
Measured on November 16, 2026 with Astro 7.4 and Next.js 16.4, locally, median of three runs.
The post is plain text with a few images. Still, the Next.js version loads nine JavaScript files. The home page showed exactly the same picture:
Astro delivered 0 KB of JavaScript, Next.js 188 KB in 9 files.
Don't get me wrong:
97 points in Lighthouse is a good score. Next.js isn't slow. And this is a comparison of the two templates of my skill, not of every conceivable Next.js project. But for the same content, Next.js simply drags along a complete React runtime that your reader never needs.
For a blog post, the JavaScript of Next.js is plain ballast. For a dashboard, on the other hand, it's exactly what you need.
4. Astro and Next.js compared directly
Here are the most important differences at a glance:
| Criterion | Astro | Next.js |
|---|---|---|
| Made for | Blogs, magazines, company sites | Apps, shops, dashboards |
| Default output | static HTML | server app with React |
| JavaScript in the browser | none, only in islands | React runtime included |
| Content | Content Collections with Markdown | your own code (MDX, TSX, JSON) |
| Hosting | almost anywhere, no adapter | Node.js server, Docker, or adapter |
| Login, shopping cart, accounts | possible, but manual work | built in |
| Current version | 7.4 | 16.4 |
5. Why I recommend Astro for blogs
Now we get to the heart of it. There are four reasons why I advise you so clearly toward Astro for your blog.
5.1 Fast pages without optimization work
With WordPress, you have to work hard for speed, as my guide to speeding up WordPress shows. With Next.js, you have to make sure that not too much code ends up in the browser. With Astro, a fast page is the normal state, because every page is already finished HTML at build time.
5.2 Content stays content
In Astro, you store articles as Markdown files in a content collection. A schema in src/content.config.ts checks at build time whether every article has a title, a date, and all required fields.
Sounds technical. It isn't, though. If a date is missing somewhere, the build stops instead of delivering a broken page.
5.3 Hosting almost anywhere and almost always free
A static Astro site doesn't need a server, just a place that serves files. The Astro docs list 33 guides for different providers, and for static sites you don't need an adapter.
At Cloudflare, requests to static files are even free and unlimited.
5.4 Fewer moving parts, fewer outages
This point is often underestimated.
Next.js runs with all features as a Node.js server or in a Docker container. Via an adapter, the range of features depends on the provider, and as a static export some things are missing. Verified adapters exist only for Vercel and Bun. For Cloudflare and Netlify there are their own integrations that the Next.js team doesn't verify.
blogmojo.de runs on Cloudflare with exactly this kind of integration (OpenNext). On October 26, 2026, I updated Next.js to version 16.4. After that, every single request failed, because OpenNext didn't match this version yet. Build and tests were green.
Don't make the same mistake.
With a static Astro site, this risk largely disappears, because only finished files are served at runtime.
6. How to decide
Don't get me wrong:
Next.js is an excellent framework. It just solves a different task. What matters, therefore, is what your website is supposed to do.
6.1 For a blog or a content website
Choose Astro if these points apply to you:
- Your website consists mainly of articles, pages, and images.
- Forms run through an external service or a single endpoint.
- Visitors need no account and no shopping cart.
- Individual interactive elements (calculator, search, filters) are enough for you as islands.
If you do need a few dynamic pages later, for example for a form or a protected download, you let exactly those pages render on the server in Astro. The rest stays static.
6.2 For an app, a shop, or a member area
Choose Next.js if at least one of these points applies:
- Users log in and see their own content (courses, accounts, dashboards).
- You build a shopping cart, checkout, or bookings directly into the website.
- Large parts of the interface are interactive React components.
- Your team already works with React and Next.js anyway.
If your blog only has a contact form or a download behind a form, on the other hand, you stay with Astro.
7. Hosting and costs
Both frameworks cost nothing. Hosting costs money, and this is where the difference between static and dynamic shows.
| Provider and plan | Price per month | What's included |
|---|---|---|
| Vercel Hobby | $0 | Entry level |
| Vercel Pro | $20 | $20 credit |
| Cloudflare Workers Free | $0 | 100,000 requests per day, static files unlimited |
| Cloudflare Workers Paid | from $5 | Minimum fee per month |
As of: November 2026
You can find the current plans directly at Vercel and Cloudflare.
7.1 Vercel
At Vercel, Next.js runs through an adapter that the Next.js team verifies itself. Astro runs there as well.
You can start for free, the Pro plan costs $20 a month and includes $20 of credit for usage. Check the terms of use before you start if your website earns money.
7.2 Cloudflare
At Cloudflare, requests to static files are free and unlimited. For a static Astro site, you normally pay nothing there.
Only dynamic routes count against the limit of 100,000 requests per day on the free plan. The paid plan starts at $5 a month.
Next.js runs at Cloudflare through its own integration that the Next.js team doesn't verify. That works (blogmojo.de runs this way), but requires you to always update Next.js and the integration together.
8. Is Astro better for SEO?
Yes and no.
Titles, meta descriptions, canonicals, structured data, sitemaps, and redirects can be done cleanly with both frameworks.
The difference lies elsewhere. Because Astro ships no JavaScript out of the box, your pages are lean and fast without any further effort. You can get there with Next.js too, but you have to watch yourself how much code ends up in the browser.
For SEO, what counts in the end is the content. Astro just takes the technical construction site off your plate.
9. How to start your project
Let's go!
For both frameworks, you need Node.js on your computer and a terminal. The easiest way is to leave the steps to Claude Code or Codex, but you can also type them in yourself.
9.1 With Astro
Astro needs a current Node.js version. Since Astro 6, that is at least version 22.12 on an even version line.
- Open your terminal in the folder where the project should live.
- Enter
npm create astro@latest -- --template blog. This starts you right away with the official blog template. - Answer the wizard's questions and then switch to the new project folder.
- Start the local preview with
npm run dev. - Put your articles in the template's content collection as Markdown files.
Without the blog template, npm create astro@latest is enough.
9.2 With Next.js
Next.js needs at least Node.js 20.9.
- Open your terminal in the folder where the project should live.
- Enter
npx create-next-app@latest my-project --yes. With--yes, you accept the recommended defaults such as TypeScript, Tailwind CSS, App Router, and Cache Components. - Switch to the folder with
cd my-project. - Start the local preview at
http://localhost:3000withnpm run dev.
10. Moving from WordPress
Many people who ask this question are currently sitting on a WordPress website. If that's you, don't start from zero. And if you're still wondering whether it has to be a framework at all, my CMS comparison will help you.
Whether leaving WordPress is worth it for you, I cover in the comparisons WordPress vs. Astro and WordPress vs. Next.js.
How the move works step by step, what to keep in mind for URLs, redirects, and SEO, and how Claude Code or Codex takes most of the work off your hands, I show you in my guide WordPress to Next.js or Astro.
I've also built a dedicated WordPress migration skill for this. It captures your WordPress site, decides between Astro and Next.js based on your content, and checks before the switch that no URL leads nowhere.
11. Conclusion
Astro or Next.js is less a matter of taste than many comparisons would have you believe.
For a blog, a magazine, or a company website, Astro is the better choice. It delivers fast HTML without JavaScript ballast, keeps your content as simple files, and runs at almost any provider, often for free.
Next.js plays to its strengths as soon as your website turns into an app, for example with login, shop, course area, or dashboards.
That's exactly why two of my three websites now run on Astro. The third stays on Next.js, because it is more app than blog.
Frequently asked questions
Can I use React components in Astro?
Yes. Astro supports React, Vue, Svelte, and other UI frameworks. A React component becomes interactive as soon as you give it a client:* directive. gradually.ai runs on exactly this setup, Astro with React.
Do I have to host Astro on Cloudflare now that Cloudflare has taken over the team?
No. Astro remains open source under the MIT license and, according to Cloudflare, can still be run on any platform. The Astro docs have guides for 33 providers.
Does Next.js only run on Vercel?
No. Next.js runs with all features as a Node.js server or Docker container at any provider that supports it. Verified adapters exist for Vercel and Bun, and Cloudflare and Netlify have their own integrations.
How much does an Astro website cost?
The framework itself costs nothing. You can host a static Astro site on Cloudflare for free, because requests to static files aren't billed there.
Is Astro faster than Next.js?
For content pages, usually yes, because Astro ships no JavaScript out of the box, while Next.js sends React along for interactivity in the browser. In my own measurement, the same blog post loaded 0 KB of JavaScript with Astro and 188 KB with Next.js. Lighthouse gave 100 instead of 97 points.






