Next.js vs Astro
Build the application, or ship the site.
Both are defensible. The workload decides which: rendering mix, client-side JavaScript budget, personalization depth, and the operational model a team can sustain.
The comparison.
App Router renders per route: static generation, server rendering, or incremental static regeneration, chosen per page.
Static-first by default. Pages render to HTML at build time. Server rendering is opt-in via an adapter.
Server Components cut hydration cost, but any interactive route still ships and hydrates a React runtime.
Zero JavaScript by default. Only components marked as islands hydrate; the rest stays static markup.
Application-shaped work: authenticated portals, dashboards, checkout flows, anything with persistent client state.
Content-shaped work: marketing sites, documentation, blogs, brochure pages built from content collections.
Middleware, Server Actions and per-request rendering make logged-in, personal pages a core case.
SSR adapters and middleware exist, but per-user state and complex client interactivity sit outside the framework's core model.
ISR, edge functions and caching layers give control. The cost is more setup choices to get right.
Static output deploys as files to any CDN with little to manage. Adding SSR or multiple UI-framework islands brings the complexity back.
Largest React talent pool, most third-party integrations, Vercel-maintained with frequent releases.
Smaller hiring pool. Framework-agnostic islands (React, Vue, Svelte) add flexibility but can fragment the UI layer.
The gate before either framework.
Neither framework gets picked before the requirement is known. Three things decide it. How much of the site needs to render per request? How much JavaScript can each route justify sending to the browser? Is a logged-in, personal state really part of the brief? The answer follows the requirement, not a framework preference, and it can be to keep what's already running.
Is this the right fit?
Your team wants a modern JavaScript framework and must choose between a build shaped like an app and one shaped like a site. It fits teams that can write and keep up TypeScript components.
Your routes sorted by how they render: which pages are static, which change often, which sit behind a login. Then set a JavaScript budget for each kind of route.
If your CMS is still an open question, settle that first, because it shapes both builds: Headless vs traditional CMS
Free automated assessment