Learn Nuxt with a Collection of 100+ Tips!

robots
robots

Tame the robots crawling and indexing your Nuxt site.

@nuxtjs/robots

NPM versionNPM DownloadsGitHub stars

Tame the robots crawling and indexing your Nuxt site with ease.

For @nuxtjs/robots v3.0 usage, please use the v3.x tag.


Status: v4.0 Merged with Nuxt Simple Robots
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-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

Installation

For @nuxtjs/robots v3.0 usage, please use the v3.x tag.

Install @nuxtjs/robots dependency to your project:

npx nuxi@latest module add robots

Documentation

๐Ÿ“– Read the full documentation for more information.

Demos

Sponsors

License

MIT License ยฉ 2022-PRESENT Harlan Wilton