Repository navigation
fix(deps): update dependency @nuxtjs/robots to v7 - autoclosed - #86
Closed
renovate[bot] wants to merge 1 commit into
Closed
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/nuxtjs-robots-7.x
branch
from
October 13, 2026 06:24
7edb0a3 to
2f3a655
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^6.2.4→^7.0.0Release Notes
nuxt-modules/robots (@nuxtjs/robots)
v7.0.2Compare Source
🐞 Bug Fixes
🏎 Performance
View changes on GitHub
v7.0.1Compare Source
🐞 Bug Fixes
View changes on GitHub
v7.0.0Compare Source
Nuxt Robots v7 moves the module to the portable server APIs of Nuxt 4.6 and Nuxt 5.
It ships in Nuxt SEO v6.
If you use
@nuxtjs/seo, follow the Nuxt SEO v5 to v6 migration guide.It also adds an AI training opt out and matches page metadata with your app router.
Check the breaking changes first. The upgrade steps list what to change.
Nuxt 4.6 and Node 22
Nuxt Robots v7 requires Nuxt
^4.6.0 || ^5.0.0. Nuxt 3 support is removed. (#333)It also requires Node
^22.22.3 || ^24.15.0 || >=26.0.0.Site Config v5
Nuxt Robots loads Nuxt Site Config
>=5.0.0as a module dependency. (#345)Site Config v5 changes the priority of build time config. Check the Site Config v5 release notes.
Nuxt Content v2 Removed
The Nuxt Content integration now needs Nuxt Content v3. (#350)
If your project has Nuxt Content v2, Nuxt stops at startup with a version error. Upgrade to Nuxt Content v3 and add
defineRobotsSchema()to your collection.Public Server and App Imports
Import server functions from
#robots/server. Import app composables from#robots/app. (#333)The
#internal/nuxt-robotsand#internal/nuxt-simple-robotsaliases are removed.Auto imports still work. If you disable the module, both aliases export typed mocks.
If you disable bot detection, only the bot detection functions are mocks.
Server Hooks Use
RequestEventServer functions and Nitro hook contexts use the
RequestEventtype fromnuxt/server. (#333)The change covers
getSiteRobotConfig(),getPathRobotConfig(),getBotDetection(),isBot(), andgetBotInfo().It also covers the
robots:configandrobots:robots-txthooks. Read request data from the web standardRequest:nitroApp.hooks.hook('robots:config', (ctx) => { - const host = ctx.event?.headers.get('host') + const host = ctx.event?.req.headers.get('host') })robots:configEdits Stay in Their RequestA
robots:confighook that usesctx.eventnow changes only therobots.txtresponse for that request. (#340)In v6, these edits leaked into the indexing rules of later requests.
To disable indexing for a host, use the
site-config:inithook:See Handling Multiple Domains.
useRobotsRule(true)Respects Site IndexinguseRobotsRule(true)now sendsrobotsDisabledValuewhen Site Config disables indexing. (#340)In v6, it sent
robotsEnabledValue, so a staging page could become indexable.nullnow keeps the existing rule, asundefinedalready did.Route Rules Take Precedence Over Page Metadata
When a route rule and
definePageMeta({ robots })both match a path, the route rule now wins. (#340)Custom
robots.txtPaths UsesrcDirThe module reads
assets/robots.txt,pages/robots.txt, andpages/_dir/robots.txtfromsrcDir. (#340)On Nuxt 4, the default
srcDirisapp/. If you keep that default, move these files toapp/assets/orapp/pages/.The
public/and root directory paths do not change.Zod 4 for
defineRobotsSchema()The optional
zodpeer dependency is now^4.6.5. If you usedefineRobotsSchema(), install Zod 4.6.5 or a later 4.x release. (#333)DevTools Needs
nuxtseo-devtools-hostThe Robots DevTools panel needs the
nuxtseo-devtools-hostpackage as a dev dependency. (#333)Restart the dev server after you install it. You do not add it to
modules.🚀 Features
Block AI Training Crawlers
Set
blockAiBots: 'training'to opt out of AI training. Dedicated AI search and answer agents stay unblocked. (#349)This mode blocks
GPTBot,ClaudeBot,Google-Extended,meta-externalagent,Applebot-Extended, andCCBot.Google-Extendedalso controls Gemini grounding, so this mode opts out of grounding too.blockAiBots: truestill blocks every token in theAiBotslist.Page Metadata Matches Your Router
definePageMeta({ robots: false })now matches paths with the app router. (#340, #341, #342)Matching respects
router.optionssensitive,strict, andend, plus aliases and nested routes.The module compiles the rules after page route transforms, such as Nuxt I18n locale routes.
Nuxt Content v3 in Any Module Order
Nuxt Robots and Nuxt Content v3 now work in either module order. (#340)
Call
useRobotsRule()with the frontmatter value to send the same rule in theX-Robots-Tagheader:Agent Skill
The package ships an Agent Skill at
skills/nuxtjs-robots/SKILL.md. (#339)Coding agents read it from
node_modules/@nuxtjs/robots/skills/.🔧 Bug Fixes
allowroute rule now beats a catch-allnoindexheader. (#337)disableNuxtContentIntegrationnow turns off the Nuxt Content integration. (#340)commentin agroupsentry now prints one comment line. (#340)disallowNonIndexableRoutesno longer writesDisallowlines for the build assets directory. (#340)getBotDetection()from@nuxtjs/robots/utilnow accepts aHeadersinstance. (#340)useBotDetection()builds without a separate@vueuse/coreinstall. (#333)robotsroute rules keep their meaning. (#333)X-Robots-Tagafter the middleware header merge. (#331)Upgrading
@nuxtjs/seo, follow the Nuxt SEO v5 to v6 migration guide. Otherwise, install@nuxtjs/robots@^7.#internal/nuxt-robotsand deep#robots/...imports with#robots/serveror#robots/app.event.headersandevent.node.reqin robots hooks withevent.req.headers.robots:configto thesite-config:inithook.assets/robots.txtandpages/robots.txtintosrcDir.pnpm add -D nuxtseo-devtools-host.👉 Changelog
🚨 Breaking Changes
🚀 Features
🐞 Bug Fixes
robots: falsecatch-all emitted the disabled value while allowed routes emitted nothing, so Nitro handed them the noindex header. Prerendered pages got noindexed an - by @harlan-zw and Harlan GitHub Agent in #337 (72d67)View changes on GitHub
🧠 Agent Skill
If you use an AI agent, install the
@nuxtjs/robotsSkill on skilld.dev with this command:Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.