Nuxt SEO
Getting Started

Install Nuxt SEO

Get started with Nuxt SEO by installing the dependency to your project.

Setup

  1. Install @nuxtjs/seo dependency to your project:
pnpm i -D @nuxtjs/seo
  1. Add it to your modules section in your nuxt.config:
nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@nuxtjs/seo']
})

Site URL

Important

Many of the Nuxt SEO modules will need to know what your production canonical URL is to avoid issues.

You can learn to set one by reading the Recommended Site Config guide.

Staging / Testing Environments

Important

If you're using Preview / Staging / Testing environments you will need to add some additional configuration.

Learn how by reading the Disabling Indexing guide.

If you only have a production environment, you can skip this step.

Next Steps

All modules are now installed and configured!

See the Using the Modules guide to learn how to use them.