Skip to content

robots.txt: stop Googlebot crawling versioned Mintlify asset chunks - #785

Merged
danstotts-ops merged 1 commit into
mainfrom
fix/robots-block-mintlify-asset-chunks
Aug 14, 2026
Merged

robots.txt: stop Googlebot crawling versioned Mintlify asset chunks#785
danstotts-ops merged 1 commit into
mainfrom
fix/robots-block-mintlify-asset-chunks

Conversation

@danstotts-ops

Copy link
Copy Markdown
Contributor

Follow-up to #738.

Why

The GSC "Not found (404)" bucket on the domain property doubled from ~1.1K to
2.17K between 2026-07-19 and 07-30. The new entries are almost entirely
/mintlify-assets/_next/static/chunks/*.js?dpl=... URLs: deployment-versioned
JS chunks that 404 the moment the next Mintlify deploy replaces them. Google
keeps discovering fresh ones, so the report accumulates asset noise forever and
buries the real page 404s that #738's redirects fixed. A fresh validation was
started 2026-08-13; without this change it will keep failing on asset churn
alone.

Why the default robots.txt does not already cover this

The live auto-generated robots.txt disallows /_next/ but Mintlify serves the
same tree under the /mintlify-assets/ prefix, and robots rules are pure
prefix matches, so /mintlify-assets/_next/... is crawlable today.

What

Adds a repo-root robots.txt (Mintlify serves it as-is), reproducing the
current live default verbatim and adding the same pattern one directory deeper:

  • Allow: /mintlify-assets/_next/image (mirrors the existing /_next/image allowance)
  • Disallow: /mintlify-assets/_next/

No page content, sitemap, llms.txt, or AI-assistant access changes. The
existing Content-Signal line is preserved as-is.

Effect

Googlebot stops crawling versioned chunks; the ~1K asset 404s age out of the
report on their own; the 404 report goes back to measuring real pages.

🤖 Generated with Claude Code

Mintlify's default robots.txt disallows /_next/ but serves its build assets
under /mintlify-assets/_next/, which the prefix rule does not cover. Every
redeploy mints new deployment-versioned chunk URLs (...js?dpl=...) and kills
the old ones, so Googlebot crawls a rolling population of dead JS files.
GSC's "Not found (404)" bucket doubled from ~1.1K to 2.17K around 2026-07-19
to 07-30 from exactly these URLs, burying the real page-404 signal that #738
fixed.

Reproduces the live default verbatim (Content-Signal line, /cdn-cgi/ block,
/_next/image allowance, sitemap) and adds the same pattern one directory
deeper: allow /mintlify-assets/_next/image, disallow /mintlify-assets/_next/.
Page content, llms.txt, and AI-assistant access are unaffected.
@mintlify

mintlify Bot commented Aug 13, 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 13, 2026, 11:38 PM

@danstotts-ops
danstotts-ops merged commit f3087b1 into main Aug 14, 2026
3 checks passed
@danstotts-ops
danstotts-ops deleted the fix/robots-block-mintlify-asset-chunks branch August 14, 2026 00:53
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.

2 participants