🎉 v4: Merge with Nuxt Simple Robots
Since Nuxt 1, Nuxt Robots has been powering sites /robots.txt
through simple minimal config. As robots have changed over the years, there are new requirements on how we generate these rules and talk to robots.
The v4 of Nuxt Robots is here and it's a merge of the popular nuxt-simple-robots module that was made for Nuxt v3 as is part of Nuxt SEO. It brings powerful new DX to managing the robots crawling your site, including interactive DevTools, powerful Nuxt and Nitro composables and integration with Nuxt Content and Nuxt I18n.
Migrating from nuxt-simple-robots
Please remove the dependency from your package.json and Nuxt config and then follow the Installation guide. No other breaking changes exist.
Migrating from @nuxtjs/robots
v3
If you're only using the rules
config, a best effort has been made for a seamless migration where no config changes are required. It's recommended you familiarizing yourself with How Nuxt Robots Works.
- The
configPath
config is no longer supported. For custom runtime config you should use Nitro Hooks. - The
rules
config is deprecated but will continue to work. AnyBlankLine
orComment
rules will no longer work. - Using
CleanParam
,CrawlDelay
andDisavow
requires targeting the Yandex user agent.
🚨 Breaking Changes
- Merge with nuxt-simple-robots - by @harlan-zw in #124 (13856)
🐞 Bug Fixes
- Stub in mock composables when module disabled - by @harlan-zw (36e23)
- devtools: Avoid infinite recursion - by @harlan-zw (cbdac)