🔥 All-Access Pass — $199 USD (Regular $499) · Unlock all 2,836 Astro themes ➔
komal.nakrani
Get All-Access Pass ($199)
ThemesCategoriesDocsBlogTips & TricksPricingGet All-Access Pass ($199)
Comparisons••By Komal Nakrani

Astro vs Nuxt: Which Framework Should You Choose?

Astro vs Nuxt compared: rendering modes, JavaScript shipped, content handling, Vue support and hosting, with a clear guide to which framework fits your next project.

#Astro#Astro vs Nuxt#Nuxt#Vue#Comparison

In the Astro vs Nuxt decision, choose Astro for content-first sites such as marketing pages, blogs, documentation and portfolios, where you want static HTML and as little JavaScript as possible. Choose Nuxt for Vue applications: dashboards, account areas and products where most of the page is interactive and data changes per user. Astro can render Vue components as islands, so a Vue team does not have to pick Nuxt just to keep using Vue.

Both are mature, Vite-based and deploy almost anywhere. The sections below cover how they differ in rendering, data, content and hosting, with code for the same page in each and a “choose X if” summary at the end.

Key Takeaways

  • Astro ships no client JavaScript by default; Nuxt hydrates a full Vue app on every page it renders.
  • Nuxt is Vue-only and app-oriented, with auto-imports, useFetch, a Nitro server and per-route routeRules.
  • Astro is framework-agnostic: Vue, React, Svelte, Solid and Preact components can share one page.
  • For Markdown content, Astro’s content collections are built in; Nuxt uses the official Nuxt Content module.
  • A common setup is an Astro public site with a Nuxt app on a subdomain.

Quick comparison

Astro Nuxt
Primary use Content sites with interactive islands Full-stack Vue applications
UI framework Any, including Vue via @astrojs/vue Vue
Default rendering Static, prerendered at build Universal: server-rendered, then hydrated
Client JavaScript by default None Vue runtime plus page code
Per-route rendering export const prerender per page routeRules (prerender, SWR, ISR, SPA)
Data fetching await in component frontmatter useFetch, useAsyncData
Server API Endpoints in src/pages/, Astro Actions server/api/ routes on Nitro
Markdown content Built-in content collections @nuxt/content module
Build tool Vite Vite

Rendering: islands vs universal rendering

Astro renders components to HTML and stops there unless you ask for more. A Vue component in an Astro page is static HTML until you add a directive like client:visible, at which point only that component hydrates. Everything else on the page ships as plain HTML and CSS. Our guide to which client directive to use explains the options.

Nuxt uses universal rendering by default: the server renders the page to HTML for a fast first view, then the browser downloads Vue and hydrates the whole page. After that, navigation happens on the client like a single-page app. This gives smooth transitions and shared state across the app, at the cost of shipping the Vue runtime and page components everywhere.

Nuxt gives you fine control over rendering per route with routeRules:

// nuxt.config.ts
export default defineNuxtConfig({
  routeRules: {
    '/': { prerender: true },
    '/blog/**': { isr: 3600 },
    '/account/**': { ssr: false },
  },
});

Astro’s equivalent is to prerender by default and opt individual routes into on-demand rendering with an adapter. Which Astro rendering mode to use covers that setup. Incremental static regeneration in Astro depends on your adapter and host, while Nuxt exposes it directly through Nitro presets.

The same page in both frameworks

A blog post page shows the difference clearly. In Nuxt with the Content module, the page queries a content collection and renders it with ContentRenderer:

<!-- pages/blog/[slug].vue -->
<script setup lang="ts">
const route = useRoute();
const { data: post } = await useAsyncData(route.path, () =>
  queryCollection('blog').path(route.path).first()
);

if (!post.value) {
  throw createError({ statusCode: 404, statusMessage: 'Post not found' });
}
</script>

<template>
  <article>
    <h1>{{ post.title }}</h1>
    <ContentRenderer :value="post" />
  </article>
</template>

In Astro, the page reads from a content collection at build time and outputs static HTML with no client JavaScript:

---
// src/pages/blog/[id].astro
import { getCollection, render } from 'astro:content';

export async function getStaticPaths() {
  const posts = await getCollection('blog');
  return posts.map((post) => ({ params: { id: post.id }, props: { post } }));
}

const { post } = Astro.props;
const { Content } = await render(post);
---
<article>
  <h1>{post.data.title}</h1>
  <Content />
</article>

The two look similar to write. The output differs: the Nuxt page hydrates Vue in the browser, and the Astro page is finished HTML. The Astro content collections docs cover schemas and loaders.

Using Vue inside Astro

If your team likes Vue, Astro keeps it. Add the integration and import .vue files directly:

# Terminal
npx astro add vue
---
// src/pages/pricing.astro
import Base from '../layouts/Base.astro';
import PriceCalculator from '../components/PriceCalculator.vue';
---
<Base title="Pricing">
  <h1>Pricing</h1>
  <p>Every plan includes unlimited projects.</p>
  <PriceCalculator client:visible />
</Base>

Only PriceCalculator hydrates, and only when it scrolls into view. The rest of the page is static. What you lose compared with Nuxt is the app layer: there is no Vue Router, no global Pinia store shared across pages by default, and no client-side navigation unless you add Astro’s view transitions. For a content site that is usually fine; for an app it is a real gap.

Data, server routes and full-stack features

Nuxt is a full-stack framework. Its Nitro server engine runs files in server/api/ as API routes, useFetch and useAsyncData handle data on both server and client without duplicate requests, and auto-imports mean components and composables are available without import statements. The module ecosystem covers auth, images, i18n, UI kits and more.

Astro has server features too. With an adapter, you get on-demand pages, API endpoints, middleware, sessions, Astro Actions for typed form handling and server islands for personalised fragments inside cached pages. Our Astro SSR guide walks through them. The difference is emphasis: Astro adds server features to a content-first core, while Nuxt is built around the app.

Content and SEO

Astro’s content layer is built in. Collections validate Markdown, MDX, JSON and YAML against a schema, loaders can pull from a CMS or API, and official integrations handle MDX, sitemaps and RSS. Starlight builds a full docs site on top.

Nuxt handles content through the official Nuxt Content module, which also supports collections with schemas and querying. It is capable, but it is a module you add and configure rather than part of the core.

For SEO, both render crawlable HTML. Nuxt provides useHead and useSeoMeta for meta tags; Astro components render tags directly in the layout. Astro’s smaller JavaScript payload tends to help Core Web Vitals on content pages with less tuning.

Hosting and cost

  • Astro static sites are plain files that deploy to any static host, including Cloudflare Pages, Netlify, Vercel and GitHub Pages, often free. On-demand routes add an adapter.
  • Nuxt apps run on Nitro, which has deployment presets for Node.js, serverless and edge platforms. A fully prerendered Nuxt site (nuxt generate) can also go on a static host, but still hydrates Vue in the browser.

A static Astro site has no server to run, which keeps cost and maintenance low. Our deployment docs cover the common static hosts.

Choose Astro if, choose Nuxt if

Choose Astro if:

  • The site is mostly content: marketing, blog, docs, portfolio, catalogue.
  • You want static output and minimal JavaScript by default.
  • You want to mix Vue with other frameworks, or write mostly HTML and CSS.
  • You want Markdown content with schema validation and no extra modules.

Choose Nuxt if:

  • You are building a Vue application with client-side navigation and shared state.
  • Most pages depend on the logged-in user or change after every interaction.
  • You want server API routes, data fetching and rendering rules in one Vue-centred framework.
  • Your team relies on Nuxt modules for auth, i18n or a UI kit.

Using both together

Plenty of teams run an Astro site at example.com for marketing, docs and blog, and a Nuxt app at app.example.com for the product. Vue components such as a pricing calculator or signup form can be shared between them, hydrated as islands on the Astro side.

If you need the public site live quickly, starting from an Astro theme with the pages already built is a reasonable shortcut; our Technology category holds SaaS and product themes. For a React-side comparison, see Astro vs Next.js.

FAQ

Is Astro better than Nuxt?

Neither is better in general. Astro is better for content-first sites where you want static HTML and little JavaScript. Nuxt is better for interactive Vue applications that need client-side navigation, shared state and full-stack features in one framework.

Can I use Vue components in Astro?

Yes. Run npx astro add vue and import .vue files into Astro pages. Without a client directive they render to static HTML; with client:load, client:visible or client:idle they hydrate as interactive islands.

Can Nuxt generate a static site?

Yes. nuxt generate prerenders every route to static files, and routeRules can prerender selected routes. The output still loads Vue in the browser to hydrate the page, unlike Astro’s static pages, which ship no JavaScript by default.

Is Astro faster than Nuxt?

For content pages, Astro usually ships less JavaScript because it hydrates only the components you mark. That tends to help load time on slower devices. For in-app navigation after the first page, Nuxt’s client-side routing can feel quicker. Measure the pages that matter to you.

Should I migrate a Nuxt marketing site to Astro?

If the site is mostly static content and you want smaller pages, moving to Astro is often worthwhile, and existing Vue components can come along as islands. If the site is really an app with logins and dynamic state, staying on Nuxt is usually simpler.