Robots
Getting Started
Install Nuxt Simple Robots
Get started with nuxt-simple-robots by installing the dependency to your project.
Using Nuxt SEO? This module is already installed for you.
Setup
- Install
nuxt-simple-robots
dependency to your project:
pnpm i -D nuxt-simple-robots
- Add it to your
modules
section in yournuxt.config
:
nuxt.config.ts
export default defineNuxtConfig({
modules: ['nuxt-simple-robots']
})
Staging / Testing Environments
ImportantIf you're using Preview / Staging / Testing environments you will need to implement extra configuration. This is important to avoid duplicate content issues and these environments appearing in Google searches.
Please read the Disabling Indexing guide for more information.
If you only have a production environment, you can skip this step.
Next Steps
The module is now installed and configured!
- Learn more about how the module works.
- Configure the module using a robots.txt.