Nuxt · SEO

NUXT0057Use Nuxt SEO composables for metadata

Finds Nuxt seo code that should use the supported seo composables pattern instead.

Why it happens

useSeoMeta() provides typed, flat SEO fields and prevents malformed name, property, and content combinations in manual head arrays.

Fix

Use the Nuxt-supported seo composables pattern instead.

Example

Use SEO composables

Before

useHead({
  title: 'Home',
  meta: [{ name: 'description', content: 'Welcome' }],
})

After

useSeoMeta({
  title: 'Home',
  description: 'Welcome',
})

Verify the fix

Run only this rule after editing so the report stays focused on the diagnostic you are closing:

pnpm nuxt doctor --rules nuxt/seo/prefer-seo-composables
Copyright © 2026