Skip to content

robots.txt: scope the /_next/ disallow to Googlebot - #793

Open
danstotts-ops wants to merge 1 commit into
mainfrom
fix/robots-scope-next-disallow-to-googlebot
Open

robots.txt: scope the /_next/ disallow to Googlebot#793
danstotts-ops wants to merge 1 commit into
mainfrom
fix/robots-scope-next-disallow-to-googlebot

Conversation

@danstotts-ops

Copy link
Copy Markdown
Contributor

Before

The /_next/ and /mintlify-assets/_next/ disallows were in the User-agent: * group. That applied the Mintlify asset restrictions to every crawler, including GPTBot, ChatGPT-User, ClaudeBot, and Claude Code.

After

The asset-specific allows and disallows are scoped to a User-agent: Googlebot group. The wildcard group retains only the shared Content-Signal and /cdn-cgi/ directives, so other agents can access Mintlify client-side navigation payloads under /_next/.

Content-Signal: ai-train=yes, search=yes, ai-input=yes and Disallow: /cdn-cgi/ are deliberately repeated in both groups. A crawler obeys only its most specific matching user-agent group, so Googlebot would lose those directives if they existed only under User-agent: *.

ai-train=yes is intentional Runpod policy for docs.runpod.io. This change does not add any Google-Extended, GPTBot, or other agent-specific block.

Verification

  • robots.txt matches the requested target byte for byte, including blank lines between groups and before Sitemap.
  • The diff contains exactly one changed file: robots.txt.
  • docs.json is unchanged and matches origin/main byte for byte.
  • git diff --check passes.

PR #785 intended a Googlebot-only rule but wrote it under User-agent: *, so
the /_next/ disallows applied to every crawler, including GPTBot,
ChatGPT-User, ClaudeBot and Claude Code. Mintlify serves client-side
navigation payloads from under /_next/, so agents following those routes were
blocked.

Adds a Googlebot group carrying the asset disallows, and leaves * with only
the shared directives. Content-Signal and Disallow: /cdn-cgi/ are repeated in
both groups deliberately: a crawler obeys only its most specific matching
group, so Googlebot would otherwise lose them.
@mintlify

mintlify Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
runpod-docs 🟢 Ready View Preview Aug 15, 2026, 3:53 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant