---
name: nuxtjs-seo
description: Install, configure, and debug the @nuxtjs/seo meta module, which installs robots, sitemap, OG image, Schema.org, SEO utils, link checker, site config, AI Ready, and Skew Protection. Use when a task mentions @nuxtjs/seo, Nuxt SEO, `nuxt module add seo`, disabling one SEO submodule, which config key owns an option, @nuxtjs/seo/content, an OG image renderer or `NUXT_APP_SECRET` error, upgrading from Nuxt SEO v5, or missing robots.txt and sitemap.xml after install.
license: MIT
compatibility: "Requires Node.js ^22.22.3 || ^24.15.0 || >=26.0.0. Requires Nuxt ^4.6.1 || ^5.0.0."
title: nuxtjs-seo
canonical_url: https://skilld.dev/gh/harlan-zw/nuxt-seo/nuxtjs-seo
last_updated: 2026-10-18T05:00:58.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install harlan-zw/nuxt-seo/nuxtjs-seo`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/nuxtjs-seo`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/harlan-zw/nuxt-seo/nuxtjs-seo) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/nuxtjs-seo`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/nuxtjs-seo --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/nuxtjs-seo --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# @nuxtjs/seo

Requires Nuxt `^4.6.1 || ^5.0.0` and Node `^22.22.3 || ^24.15.0 || >=26.0.0`. Nuxt installs declared `moduleDependencies` and checks versions.

In human dev, the first home response checks fixes, tips, and modules. Required findings report once per Nitro server instance; agent/CI skip terminal checks; production registers none. Locale prefixes and app base paths work.

Only required setup affects warnings and completion; DevTools shows tips separately. Tips use resolved defaults and app config for opt-in features, excluding inline minification and general SEO advice. Opt-outs suppress tips; unavailable data waits for retry.

Tips report weekly per project. State is `.nuxt/cache/nuxt-seo/setup-tips.json`; deleting resets it. `nuxtseo: { tips: false }` disables tips, not required checks. Healthy projects without tips report nothing.

Options, composables, and components come from submodules. Docs: nuxtseo.com/docs/nuxt-seo. This Skill covers bundle additions; use each module's Skill or docs below.

## Setup

```bash
npx nuxt module add seo
```

```ts
export default defineNuxtConfig({
  modules: ['@nuxtjs/seo'],
  site: { url: 'https://example.com', name: 'My Site' },
})
```

- Add only `@nuxtjs/seo` to `modules`; Nuxt installs submodules once.
- Set `site.url` and `site.name`; v5 stopped inferring them from `package.json`.
- Set `NUXT_APP_SECRET` in production; see the `NUXT_APP_SECRET` trap.
- If the app needs OG images, install a renderer: `npx nuxt-og-image enable takumi`. See the renderer traps.

## Automatic behaviour

With `site.url` and `site.name`, production, for example, adds allowing `/robots.txt`, sitemap, and per-page robots meta; static routes in `/sitemap.xml`; title, canonical, and page Open Graph metadata; `WebSite`/`WebPage` JSON-LD; `/llms.txt` and Markdown pages; retained assets with app-manifest polling. Dev robots disallows all. Link checks run only on prerender.

## Option ownership

The meta module owns only `nuxtseo.enabled` and `nuxtseo.tips`:

- `site`: `nuxt-site-config` (skilld.dev/gh/harlan-zw/nuxt-site-config)
- `robots`: `@nuxtjs/robots` (nuxtseo.com/docs/robots)
- `sitemap`: `@nuxtjs/sitemap` (nuxtseo.com/docs/sitemap)
- `ogImage`: `nuxt-og-image` (nuxtseo.com/docs/og-image)
- `schemaOrg`: `nuxt-schema-org` (skilld.dev/gh/harlan-zw/nuxt-schema-org)
- `seo`: `nuxt-seo-utils` (skilld.dev/gh/harlan-zw/nuxt-seo-utils)
- `linkChecker`: `nuxt-link-checker` (skilld.dev/gh/harlan-zw/nuxt-link-checker)
- `aiReady`: `nuxt-ai-ready` (nuxtseo.com/docs/ai-ready)
- `skewProtection`: `nuxt-skew-protection` (nuxtseo.com/docs/skew-protection)

`seo` configures `nuxt-seo-utils`, not the bundle. `nuxtseo: false` or `nuxtseo: { enabled: false }` installs no submodule.

## Disable a submodule

`false` skips setup; `enabled: false` registers nothing. Both remove the module's routes, tags, and output:

```ts
export default defineNuxtConfig({
  modules: ['@nuxtjs/seo'],
  site: { url: 'https://example.com', name: 'My Site' },
  ogImage: false,
  linkChecker: { enabled: false },
})
```

You cannot disable `site`; other submodules need it. To drop the bundle, set `nuxtseo: false` or remove it from `modules`. A submodule you list still installs.

## AI Ready and Skew Protection

Both install automatically. On v5 upgrade, remove duplicate `modules` entries; keep their options.

- AI Ready serves Markdown and `llms.txt`; prerendering adds `llms-full.txt`. It publishes project/layer Agent Skills at `public/skills/<name>/SKILL.md`, not root `skills/`; MCP plus site URL generates an API catalog. Databases, background indexing, and cron are opt-in. Set either `aiReady.agentSkills` or `aiReady.apiCatalog` to `false`.
- The bundle sets Skew Protection `updateStrategy: 'polling'` and `cookie: false`; site options win. Preserve `node_modules/.cache/nuxt-seo/skew-protection` in CI or set `skewProtection.storage`. Handlers using `isClientOutdated` need a `skewProtection.cookie` config object.
- Set `aiReady: false` or `skewProtection: false` to disable either module.

## Nuxt Content v3

Import four helpers from `@nuxtjs/seo/content`. With pnpm, `@nuxtjs/robots/content` fails `ERR_MODULE_NOT_FOUND` because submodules are not top-level dependencies. Add `zod` 4; helpers use it as an optional peer.

```ts
import { defineCollection, defineContentConfig } from '@nuxt/content'
import { defineOgImageSchema, defineRobotsSchema, defineSchemaOrgSchema, defineSitemapSchema } from '@nuxtjs/seo/content'
import { z } from 'zod'

export default defineContentConfig({
  collections: { content: defineCollection({
    type: 'page',
    source: '**/*.md',
    schema: z.object({
      robots: defineRobotsSchema(),
      sitemap: defineSitemapSchema(),
      ogImage: defineOgImageSchema(),
      schemaOrg: defineSchemaOrgSchema(),
    }),
  }) },
})
```

`schemaOrg` and `sitemap` apply without page code. `robots` needs `page.seo` passed to `useSeoMeta()`:

```vue
<script setup lang="ts">
const { data: page } = await useAsyncData('page', () => queryCollection('content').path(useRoute().path).first())
useSeoMeta(page.value?.seo || {})
</script>
```

`@nuxtjs/seo` and `@nuxt/content` order does not change output. v6 removes `asSeoCollection()`: replace `defineCollection(asSeoCollection({ ... }))` with the `schema` above.

## Traps

- **Production OG images return 500 without `NUXT_APP_SECRET`.** Only `/_og/` fails; pages render. Dev creates a temporary secret, builds do not. Run `npx nuxt-og-image generate-secret`; set a 32+ character production secret. Static and `ogImage: { zeroRuntime: true }` need none.
- **Fresh install has no OG images without a template or renderer.** Run `npx nuxt-og-image enable takumi`, or set `ogImage: false`.
- **A template renderer is missing.** Interactive `nuxt dev` asks to install it. CI and Agent shells log `npx nypm add`, never edit `package.json`; production build then fails if used.
- **An app submodule replaces the bundled copy.** An old pin stops build; upgrade or remove it.
- **`@nuxtjs/i18n` below v10 fails every build.** Upgrade i18n.
- **Content `robots: 'noindex'` stays in the sitemap.** Only `robots: false` removes it; both render `noindex, nofollow`.

## Version limits

- Nuxt `^4.6.1 || ^5.0.0`; older versions stop build. Run `npx nuxt upgrade`. Nuxt 3 stays on v5.
- Nuxt Content v2 is not supported; use Content v3 with Zod 4.
- v6 moves every submodule up one major and bundles AI Ready and Skew Protection. Migration: nuxtseo.com/docs/nuxt-seo/migration-guide/v5-to-v6
- For bundled modules, pins, `NUXT_APP_SECRET`, DevTools, and `nuxtseo: false`, use the instructions above.
- `robots:*` and `sitemap:*` contexts use `RequestEvent`: replace `ctx.event.node.req.headers.authorization` with `ctx.event.req.headers.get('authorization')`.
- `#internal/nuxt-robots`, bare `#schema-org`, bare `#seo-utils`: use `#robots/server`, `#schema-org/app`, `#seo-utils/app`.
- On a submodule version error, run `pnpm why <package>` to find the older pin.

## Debug

- Run `npx nuxt dev`, open home. Terminal lists setup and tips; Agent and CI skip it.
- Dev `/__nuxt-seo__/setup.json` returns module/setup data. Other data: `/__site-config__/debug.json`, `/__robots__/debug.json`, `/__sitemap__/debug.json`, `/_og/debug.json`.
- DevTools needs `nuxtseo-devtools-host`, or shows an install button. `npx nuxt info` lists versions.
