Is Nuxt Good for SEO? The Complete Nuxt SEO Guide (2026)
Yes, Nuxt is good for SEO. Learn why (SSR, SSG, hybrid rendering, head management, Nuxt SEO modules), where it goes wrong, and a checklist for Nuxt 4.
Yes, Nuxt is good for SEO, and in my experience it is one of the easiest ways to ship a Vue site that search engines can index properly. Nuxt renders your pages to full HTML on the server (SSR), at build time (SSG), or per route with hybrid rendering, so crawlers get real content instead of an empty <div id="app">. It gives you useSeoMeta and useHead for titles, descriptions, Open Graph and canonical tags, and the Nuxt SEO module family handles sitemaps, robots.txt, structured data and canonical URLs with very little code. The caveats are real though: if you turn SSR off and ship a client-only app, if you hydrate a lot of JavaScript on every page, or if you get the boring details wrong (trailing slashes, canonical URLs, redirects), Nuxt will not save you. This guide covers both sides.
Everything here is written against Nuxt 4, and all of it also applies to Nuxt 3. I use this exact setup on this portfolio, so where I show config, it is the config this site runs on.
Why Nuxt works well for SEO
Search engines rank pages, not frameworks. What a framework controls is how easy it is to give a crawler a fast page with complete HTML, correct metadata and clear signals about which URL is the real one. Nuxt does well on all three:
- Rendered HTML by default. Nuxt uses universal rendering out of the box. The server (or the build) produces the full page markup, then Vue hydrates it in the browser.
- Head management built in. Title, meta, link and script tags are managed through Unhead with composables that work the same on the server and client.
- Per-route rendering control. You can prerender marketing pages, cache product pages and keep a dashboard client-only, all in one app.
- A dedicated SEO module ecosystem. Sitemap, robots, Schema.org, canonical URLs and OG images are maintained modules that read from one shared site config.
Google can render JavaScript, but rendering is a separate, later step in its pipeline, and plenty of other crawlers (social previews, some search engines, many AI crawlers) read the raw HTML only. Shipping complete HTML removes that whole class of problems.
Rendering modes and routeRules
The biggest SEO decision in a Nuxt app is how each route is rendered. Nuxt gives you a few options:
- Universal rendering (SSR): HTML is rendered per request on a Node or edge server.
- Static generation (SSG):
nuxt generateprerenders every route to HTML at build time. This site uses that and deploys to Netlify. - Client-side rendering:
ssr: falsefor the whole app or a route. Fine for logged-in areas, bad for pages you want ranked. - Hybrid rendering: mix all of the above per route with
routeRules.
Here is the pattern from the Nuxt docs that I start most projects from:
// nuxt.config.ts
export default defineNuxtConfig({
routeRules: {
// Prerendered at build time
'/': { prerender: true },
// Rendered on demand, revalidated in the background, cached for 1 hour
'/products/**': { swr: 3600 },
// Incremental static regeneration on supported hosts
'/blog/**': { isr: true },
// Client-only: never meant to rank
'/admin/**': { ssr: false },
// Permanent redirect for a legacy URL
'/old-page': { redirect: '/new-page' },
},
})
My rule of thumb: anything you want indexed should be prerendered, SSR, SWR or ISR. Only use ssr: false for pages that sit behind a login or that you are also excluding from indexing.
Meta tags with useSeoMeta and useHead
useSeoMeta is the composable I use for almost every page. It is typed, so you cannot misspell og:description or mix up name and property.
<script setup lang="ts">
const route = useRoute()
const { data: post } = await useAsyncData(`post-${route.path}`, () =>
queryCollection('content').path(route.path).first()
)
useSeoMeta({
title: () => post.value?.title,
description: () => post.value?.description,
ogTitle: () => post.value?.title,
ogDescription: () => post.value?.description,
ogType: 'article',
twitterCard: 'summary_large_image',
})
</script>
Use the getter syntax (() => value) for anything reactive. Use useHead for tags that are not simple meta, such as <link rel="canonical">, htmlAttrs.lang or extra scripts:
useHead({
htmlAttrs: { lang: 'en' },
link: [{ rel: 'canonical', href: 'https://example.com/blog/my-post/' }],
})
One change if you are coming from the old version of this post: useServerSeoMeta is deprecated. The current recommendation is to wrap a normal useSeoMeta call in if (import.meta.server) { ... } for static tags that never change on the client.
Site config: set it once
All the Nuxt SEO modules read from a shared site key in nuxt.config.ts. Set it first, because it decides the absolute URLs that end up in your sitemap, canonical tags and structured data. This is a trimmed version of what this site uses:
// nuxt.config.ts
export default defineNuxtConfig({
site: {
url: 'https://saymonakash.me',
name: 'Saymon Arefin Akash',
indexable: true,
trailingSlash: true,
},
})
I hardcode url instead of relying on an environment variable alone. If the variable is missing on one deploy, the modules fall back to a placeholder or the request host, and you end up with a sitemap full of the wrong domain. indexable lets you block indexing on staging without touching robots rules by hand.
The Nuxt SEO modules
@nuxtjs/seo installs the whole family in one step (npx nuxt module add @nuxtjs/seo). You get the same modules either way, so on this site I install only the ones I use, individually. Here is what each one does and how I configure it.
Sitemap (@nuxtjs/sitemap)
The sitemap module discovers your static pages automatically. Dynamic routes, like blog posts rendered by pages/blog/[slug].vue, need a source. I use a server endpoint:
// nuxt.config.ts
sitemap: {
exclude: ['/admin'],
sources: ['/api/__sitemap__/urls'],
}
// server/api/__sitemap__/urls.ts
import { defineSitemapEventHandler } from '#sitemap/server'
export default defineSitemapEventHandler(() => [
{ loc: '/blog/nuxt-3-seo/', lastmod: '2026-12-01' },
])
Keep lastmod honest. Only change it when the content actually changes.
Robots (@nuxtjs/robots)
The robots module generates robots.txt and also adds the X-Robots-Tag header and robots meta tag per route. You can disallow paths in config, or use route rules, which I find easier to read:
// nuxt.config.ts
robots: {
disallow: ['/admin'],
},
routeRules: {
'/admin/**': { robots: false },
},
Schema.org (nuxt-schema-org)
Structured data is where Nuxt SEO saves me the most time. You define your site identity once, and every page's JSON-LD graph links back to it:
// nuxt.config.ts
import { definePerson } from 'nuxt-schema-org/schema'
export default defineNuxtConfig({
schemaOrg: {
identity: definePerson({
name: 'Saymon Arefin Akash',
image: '/saymonakash.jpg',
url: 'https://saymonakash.me',
sameAs: ['https://github.com/saymonakash'],
}),
},
})
Then on a blog post:
useSchemaOrg([
defineArticle({
headline: post.value?.title,
description: post.value?.description,
datePublished: post.value?.isoDate,
}),
])
Two mistakes I have made myself: passing a display date like "Sep 12, 2024" (Schema.org wants ISO 8601, which is why my posts have an isoDate field), and declaring the Person a second time in a raw <script type="application/ld+json">, which creates duplicate nodes in the graph. Declare the identity once and reference it.
SEO Utils (nuxt-seo-utils)
This module fills in the defaults you would otherwise forget: a canonical URL built from your site config and the current route, a title template, sensible default meta, and breadcrumb helpers. The canonical URL drops query parameters except a whitelist of ones that change the content, such as page, sort and q.
OG Image (nuxt-og-image)
nuxt-og-image generates social preview images from Vue components. In current versions the renderer is part of the component filename (for example components/OgImage/Post.satori.vue), and if every image is prerendered you can set ogImage: { zeroRuntime: true } to keep the renderer out of your production bundle. I have it disabled on this site for now because it needs a renderer and a build-time font fetch, and a static photo works fine for a portfolio. On a content site with many posts it is worth the setup.
Canonical URLs and trailing slashes
This is the part that bit me most recently. Your canonical URL, your internal links, your sitemap and the URL your host actually serves must all be the same string. If they are not, Google sees redirects and duplicates, and Search Console fills up with "Page with redirect" and "Alternate page with proper canonical tag".
Netlify serves a prerendered page at /about/ and redirects /about to it with a 301. My links pointed at /about, so every internal link was a redirect. The fix was three lines of config plus making the canonical match:
// nuxt.config.ts
site: { trailingSlash: true },
experimental: {
defaults: {
nuxtLink: { trailingSlash: 'append' },
},
},
trailingSlash: 'append' makes every <NuxtLink> render its href with a trailing slash. I wrote up the full story, including Search Console validation, in Fixing "Page with redirect" in Google Search Console. If you are not on Netlify, check what your host does first and pick the convention that matches it, not the other way round.
Core Web Vitals in Nuxt
Page experience is a ranking signal, and the three metrics are LCP, CLS and INP (INP replaced FID in 2024, so ignore older advice that still talks about FID). Nuxt gives you good tools for each.
Images with @nuxt/image
The Largest Contentful Paint element is usually an image. <NuxtImg> serves modern formats and responsive sizes, and its preload prop adds a preload link for the hero image:
<template>
<NuxtImg
src="/hero.jpg"
alt="Mountains at sunrise"
width="1600"
height="900"
:preload="{ fetchPriority: 'high' }"
/>
</template>
Always set width and height. That alone prevents a lot of layout shift.
Fonts with @nuxtjs/fontaine
Web fonts cause layout shift when the fallback font has different metrics than the real one. @nuxtjs/fontaine generates fallback font faces with adjusted metrics so the swap moves the layout much less. On this site it is a one-line module install.
Hydration and nuxt-delay-hydration
Hydration is the real cost of Nuxt. The HTML arrives fast, but the browser still has to download and run the JavaScript for every component on the page, and that work shows up in Total Blocking Time and can hurt INP.
nuxt-delay-hydration delays that work until the user interacts (scroll, mouse move, click) or the browser goes idle. I use it on this site in mount mode. But I want to be honest about it, because the module's own README is: it describes itself as a hack to make Lighthouse think your site is faster, says it should only be used on progressively enhanced sites, and says it may not give any real performance or SEO benefit. The tradeoffs:
- Lab scores (Lighthouse TBT) usually improve. Field data may not move.
- Anything that needs JavaScript does not work until hydration. A hamburger menu might ignore the first tap. The module has an experimental
replayClickoption for this. - It suits mostly static pages: blogs, portfolios, marketing sites. It is a bad fit for app-like pages.
Before reaching for it, try Nuxt's built-in lazy hydration, which is more targeted. In Nuxt 4 (and recent Nuxt 3), lazy components accept hydration strategies:
<template>
<LazyCommentSection hydrate-on-visible />
<LazyNewsletterForm hydrate-on-interaction />
<LazySiteFooter hydrate-on-idle />
</template>
That keeps the above-the-fold UI interactive while deferring the heavy parts. Whatever you choose, judge it with field data from CrUX or the Core Web Vitals report in Search Console, not only with Lighthouse.
llms.txt for AI crawlers
AI search tools increasingly read sites directly. I use nuxt-llms to generate /llms.txt (a curated index of the site) and /llms-full.txt (the full text of every page). With @nuxt/content, the markdown of each content page is included in the full file automatically.
// nuxt.config.ts
llms: {
domain: 'https://saymonakash.me',
title: 'Saymon Arefin Akash',
description: 'Portfolio, projects, and blog.',
full: {
title: 'Saymon Arefin Akash, Full Content',
description: 'Full text of every page and blog post.',
},
sections: [
{
title: 'Blog',
links: [{ title: 'Is Nuxt Good for SEO?', href: '/blog/nuxt-3-seo/' }],
},
],
},
I set blockAiBots: false in the robots config so AI crawlers can read the site. Whether you want that is a business decision, not a technical one. Note that the newest @nuxtjs/seo bundle includes its own AI module for llms.txt, so if you install the full bundle, check that you are not generating the file twice. llms.txt is a proposal, not a standard any search engine has committed to, so treat it as cheap insurance rather than a ranking factor.
Common Nuxt SEO mistakes I see
ssr: falseacross the whole app because one library broke on the server. Fix the library with a.client.vuecomponent or<ClientOnly>instead.- Missing or placeholder
site.url, which leaks into canonicals and the sitemap. - Inconsistent trailing slashes between links, canonicals, the sitemap and the host.
- Duplicate titles and descriptions, usually from a layout setting a default and pages never overriding it.
- Content loaded only on the client with
onMountedandfetch, so it never reaches the server HTML. UseuseAsyncDataoruseFetch. - Invalid structured data: display dates, relative URLs where absolute ones are needed, or duplicated entities.
- Forgetting dynamic routes in the sitemap and in the prerender list when using
nuxt generate.
Nuxt SEO checklist
Run through this before launch and again after any big refactor:
- Every indexable route is SSR, prerendered, SWR or ISR. Nothing important is
ssr: false. site.url,site.nameandsite.trailingSlashare set innuxt.config.ts.- Internal links, canonical tags,
og:urland sitemap entries all use the exact final URL your host serves. - Every page has a unique title (within about 60 characters including the site name) and a unique description.
- Pages set content with
useAsyncDataoruseFetchso it is in the server HTML. Check with View Source, not DevTools. /sitemap.xmllists every page you want indexed, including dynamic ones, with honestlastmoddates./robots.txtallows what you want crawled and points at the sitemap. Private routes userobots: false.- Schema.org identity is defined once, and articles use ISO dates. Validate with Google's Rich Results Test.
- The LCP image uses
<NuxtImg>withpreloadand explicit dimensions. - Heavy below-the-fold components use lazy hydration. If you use
nuxt-delay-hydration, you have tested it on real devices. - Old URLs have permanent redirects to their new home.
- The site is verified in Google Search Console, the sitemap is submitted, and you check the Pages report after each release.
If you are still choosing a framework, I compared the two main options in Nuxt vs Next.js for SEO. Short version: both are excellent, and the setup matters more than the choice.
Need help with Nuxt SEO?
I build and fix Nuxt sites for a living, from setup to Search Console cleanup. If your Nuxt site is not getting indexed the way it should, take a look at my services or get in touch and tell me what you are seeing.
Frequently asked questions
- Is Nuxt.js good for SEO?
- Yes. Nuxt renders full HTML on the server or at build time, gives you first-class composables for meta tags, and has a mature module ecosystem for sitemaps, robots.txt, canonical URLs and structured data. Most Nuxt SEO problems come from configuration mistakes, not from the framework.
- Is Nuxt better for SEO than a plain Vue single-page app?
- Usually, yes. A plain Vue SPA ships an almost empty HTML shell and relies on the crawler running JavaScript, while Nuxt sends the content in the initial HTML. Search engines that render JavaScript can index both, but server-rendered HTML is faster to process and works for crawlers that do not run JavaScript.
- Does this guide apply to Nuxt 3?
- Yes. Everything here works on Nuxt 3 and Nuxt 4. The main Nuxt 4 change you will notice is the app/ directory structure, and useServerSeoMeta is deprecated in favour of useSeoMeta wrapped in an import.meta.server check.
- What is the Nuxt SEO module?
- Nuxt SEO (@nuxtjs/seo) is a bundle of modules that cover technical SEO: sitemap, robots, Schema.org, SEO utilities such as canonical URLs, OG image generation, link checking and site config. You can install the whole bundle or only the individual modules you need.
- Should I use nuxt-delay-hydration for SEO?
- Only on mostly static, progressively enhanced pages, and only after testing. It mainly improves lab metrics like Total Blocking Time in Lighthouse, and its own documentation warns it may not give real-world performance or SEO gains. Check field data from CrUX or Search Console before and after.
- Why does Google Search Console show Page with redirect on my Nuxt site?
- Usually because your internal links, canonical tags or sitemap point to URLs that your host redirects, most often a missing or extra trailing slash. Make every internal URL match the final URL your host serves and the warnings clear up after Google recrawls.
