Package Exports
- nuxt-simple-robots
Readme
nuxt-simple-robots
Tame the robots crawling and indexing your Nuxt site with ease.
|
Status: v3 Released 🎉 Please report any issues 🐛 Made possible by my Sponsor Program 💖 Follow me @harlan_zw 🐦 • Join Discord for help |
Features
- 🤖 Merge in your existing robots.txt or programmatically create a new one
- 🗿 Automatic
X-Robots-Tagheader and<meta name="robots" ...>meta tag - 🔄 Integrates with route rules and runtime hooks
- 🔒 Disables non-production environments from being indexed
- Solves common issues and best practice default config
Installation
- Install
nuxt-simple-robotsdependency to your project:
#
yarn add -D nuxt-simple-robots
#
npm install -D nuxt-simple-robots
#
pnpm i -D nuxt-simple-robots- Add it to your
modulessection in yournuxt.config:
export default defineNuxtConfig({
modules: ['nuxt-simple-robots']
})Documentation
📖 Read the full documentation for more information.
Sponsors
License
MIT License © 2022-PRESENT Harlan Wilton