Skip to content

Releases: nuxt-modules/robots

v5.1.0

23 Dec 01:16
Compare
Choose a tag to compare

✨ v5.1.0

🤖 No Index Build Directory

This minor version introduces improvements around your nuxt asset build directory getting indexed (/_nuxt/*). It will now add X-Robots-Tag to these files and make sure they don't end up on Google.

If you have these paths ignored for your robots.txt the module will warn you as they need to be accessible by robots to crawl your pages correctly.

To accommodate this feature the disallowNonIndexableRoutes config has been deprecated and set to false by default (previously true). You may notice your robots.txt has different output but your site indexing will remain the same.

Changelog

    ⚠️ Deprecations

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v5.0.1

07 Dec 06:17
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v5.0.0

24 Nov 15:04
Compare
Choose a tag to compare

Introduction

The v5 major of Nuxt Robots is a simple release to remove deprecations and add support for the Nuxt SEO v2 stable.

⚠️ Breaking Features

Site Config v3

Nuxt Site Config is a module used internally by Nuxt Robots.

The major update to v3.0.0 shouldn't have any direct effect on your site, however, you may want to double-check
the breaking changes.

Removed rules config

The v4 of Nuxt Robots provided a backward compatibility rules config. As it was deprecated, this is no longer supported. If you're using rules, you should migrate to the groups config or use a robots.txt file.

export default defineNuxtConfig({
	robots: {
-    	rules: {},
+    	groups: {}
	}
})

Removed defineRobotMeta composable

This composable didn't do anything in v4 as the robots meta tag is enabled by default. If you'd like to control the robot meta tag rule, use the useRobotsRule() composable.

- defineRobotMeta(true)
+ useRobotsRule(true)

Removed RobotMeta component

This component was a simple wrapper for defineRobotMeta, you should use useRobotsRule() if you wish to control the robots rule.

Removed index, indexable config

When configuring robots using route rules or Nuxt Content you could control the robot's behavior by providing index or indexable rules.

These are no longer supported and you should use robots key.

export default defineNuxtConfig({
  routeRules: {
    // use the `index` shortcut for simple rules
-    '/secret/**': { index: false },
+    '/secret/**': { robots: false },
  }
})

🚀 Features

Config blockAiBots

AI crawlers can be beneficial as they can help users finding your site, but for some educational sites or those not
interested in being indexed by AI crawlers, you can block them using the blockAIBots option.

export default defineNuxtConfig({
  robots: {
    blockAiBots: true
  }
})

This will block the following AI crawlers: GPTBot, ChatGPT-User, Claude-Web, anthropic-ai, Applebot-Extended, Bytespider, CCBot, cohere-ai, Diffbot, FacebookBot, Google-Extended, ImagesiftBot, PerplexityBot, OmigiliBot, Omigili

Changelog

   🚨 Breaking Changes

   🚀 Features

    View changes on GitHub

v4.1.11

03 Nov 13:33
Compare
Choose a tag to compare

No significant changes

    View changes on GitHub

v4.1.10

29 Oct 14:20
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v4.1.9

17 Oct 16:15
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v4.1.8

15 Oct 12:34
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v4.1.7

12 Sep 14:36
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v4.1.6

02 Sep 07:56
Compare
Choose a tag to compare

No significant changes

    View changes on GitHub

v4.1.5

02 Sep 06:37
Compare
Choose a tag to compare

No significant changes

    View changes on GitHub