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 |
- ๐ค Merge in your existing robots.txt or programmatically create a new one
- ๐ฟ Automatic
X-Robots-Tag
header 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
- Install
nuxt-simple-robots
dependency 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
modules
section in yournuxt.config
:
export default defineNuxtConfig({
modules: ['nuxt-simple-robots']
})
๐ Read the full documentation for more information.
MIT License ยฉ 2022-PRESENT Harlan Wilton