Skip to content

nuxt-modules/robots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

904c573 Β· Mar 13, 2025
Mar 13, 2025
Feb 18, 2025
Mar 13, 2025
Mar 13, 2025
Mar 13, 2025
Mar 13, 2025
Jul 13, 2024
Jan 19, 2025
Jul 13, 2024
Jul 13, 2024
Nov 12, 2024
Nov 23, 2024
Feb 18, 2025
Jan 20, 2025
Jul 13, 2024
Mar 13, 2025
Mar 13, 2025
Jan 19, 2025
Jul 13, 2024
Jan 20, 2025
Nov 23, 2024

Repository files navigation

@nuxtjs/robots

npm version npm downloads License Nuxt

Nuxt Robots is a module for configuring the robots crawling your site with minimal config and best practice defaults.

The core feature of the module is:

  • Telling crawlers which paths they can and cannot access using a robots.txt file.
  • Telling search engine crawlers what they can show in search results from your site using a <meta name="robots" content="index"> X-Robots-Tag HTTP header.

New to robots or SEO? Check out the Controlling Web Crawlers guide to learn more about why you might need these features.

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

πŸ’‘ Using Nuxt 2? Please use the v3.x tag.

Install @nuxtjs/robots dependency to your project:

npx nuxi@latest module add robots

πŸ’‘ Need a complete SEO solution for Nuxt? Check out Nuxt SEO.

Documentation

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

Demos

Sponsors

License

Licensed under the MIT license.