Index of every page on this site: llms.txt

Why use Nuxt SEO?

Nuxt SEO is an ecosystem of SEO modules, tools, and tutorials built with and for the Nuxt community. Technical SEO requires many moving parts: sitemaps, robots.txt, Schema.org, OG images, meta tags, broken links. Nuxt SEO provides a module for each, so you can install them individually or all at once.

Start Here

For most Nuxt sites:

  1. Install @nuxtjs/seo.
  2. Set your production site.url and site.name.
  3. Visit /sitemap.xml, /robots.txt, and a real page in production to confirm the generated output.
  4. Use the SEO Checklist before launch.

If you only need one feature, install the individual module instead. For example, use @nuxtjs/sitemap when you only need a sitemap.

Features

Crawl Control

Automatic robots.txt generation, <meta name="robots"> tags, and X-Robots-Tag headers to manage how search engines access your site.

Sitemaps

Auto-generated sitemap.xml from your app's data sources, with multi-sitemap support for i18n sites.

OG Images

Dynamic Open Graph image generation for every page, no manual design work needed.

Structured Data

Schema.org JSON-LD generated automatically with sensible defaults and opt-in rich schemas.

Broken link detection at build time with ESLint integration and DevTools support.

SEO Utils

Automatic favicons, default meta tags, breadcrumbs, and social share links.

AI Discoverability

llms.txt and a Markdown version of every page, so AI agents can read your site.

Skew Protection

Keeps the assets of earlier builds after a deploy, so open tabs stop failing on missing chunks.

Modules

Every module works standalone. Install only what you need (e.g. Sitemap and Robots), or use @nuxtjs/seo to get all nine modules at once. Configuration, composables, and features are identical either way.

Site Config

All modules need your site URL for canonical links and sitemaps. Site Config ensures all modules share the correct configuration. You do not need to install this module manually; it installs automatically when you install any SEO module.

Set it once:

export default defineNuxtConfig({
  site: {
    url: 'https://example.com',
    name: 'My Site'
  }
})

Every module uses these values. No duplication.

Site Config 
   
Powerful build and runtime shared site configuration for Nuxt modules.

The @nuxtjs/seo Module

Nuxt SEO 
   
The all-in-one module that brings it all together.

The @nuxtjs/seo package installs all nine Nuxt SEO modules in one step. It also checks module versions at build time, and runs setup checks in development.

npx nuxt module add @nuxtjs/seo
// This is almost all it does. Setup also fails the build on an unsupported
// Nuxt version, or when a loaded module is older than its version below.
// In development, it also runs setup checks.
export default defineNuxtModule<ModuleOptions>({
  moduleDependencies: {
    '@nuxtjs/robots': { version: '>=7.0.0' },
    '@nuxtjs/sitemap': { version: '>=9.0.1' },
    'nuxt-link-checker': { version: '>=6.0.0' },
    'nuxt-og-image': { version: '>=7.0.1' },
    'nuxt-schema-org': { version: '>=7.0.0' },
    'nuxt-seo-utils': { version: '>=9.0.0' },
    'nuxt-site-config': { version: '>=5.0.1' },
    'nuxt-skew-protection': {
      version: '>=2.0.1',
      defaults: { updateStrategy: 'polling', cookie: false },
    },
    'nuxt-ai-ready': { version: '>=3.0.1' },
    '@nuxtjs/i18n': { version: '>=10.0', optional: true },
  },
})

@nuxtjs/seo vs individual modules: both approaches give you the exact same modules with the exact same features. The only difference is how you install them.

  • Use @nuxtjs/seo if you want all nine modules with a single install. This is the easiest way to get started.
  • Install individually if you only need specific modules (e.g. Sitemap and Robots) or want to pin each module to a specific version.
  • Skip one module in @nuxtjs/seo by disabling it, for example skewProtection: false.
Configuration, composables, and Nuxt Content integration work identically regardless of which approach you choose. All module documentation applies to both approaches.

Going Further

Modules handle the technical foundation, but testing your production environment is as important. Nuxt SEO provides free tools to validate your live site:

Debug your SEO: Use our free SEO Tools to validate meta tags, test robots.txt, debug social cards, and validate structured data.

Getting Started

  1. Install the module: See the Installation guide to add Nuxt SEO to your project
  2. Configure your modules: Check out the Using the Modules guide to learn how to configure and use each module
  3. Explore individual modules: Each module has its own documentation with detailed configuration options and examples
Was this page helpful?