Skip to content

fix(docs): disallow crawling of RSC payload files in robots.txt - #243

Merged
uhyo merged 1 commit into
masterfrom
claude/docs-google-indexing-3jqru1
Aug 26, 2026
Merged

fix(docs): disallow crawling of RSC payload files in robots.txt#243
uhyo merged 1 commit into
masterfrom
claude/docs-google-indexing-3jqru1

Conversation

@uhyo

@uhyo uhyo commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Problem

Google Search Console reports RSC payload URLs such as https://router.funstack.work/funstack__/fun%3Arsc-payload/36397a7cea311570.txt as "crawled — marked as duplicate". These .txt files are internal assets emitted by @funstack/static (path pattern /funstack__/{rscPayloadDir}/{hash}.txt), not pages, so there is no value in Google crawling them, and they surface as duplicate-content noise in Search Console.

Change

Add a Disallow: /funstack__/ rule to packages/docs/public/robots.txt. The directory prefix covers both the older fun:rsc-payload payload paths currently in Google's index reports and the current fun__rsc-payload default, since all payloads live under /funstack__/. Google applies the longest-matching rule, so this Disallow takes precedence over the existing Allow: / for anything under that directory.

SEO safety

Blocking a subresource is only risky when Googlebot needs it to render page content. The docs site builds with ssr: true, so full page content is pre-rendered into the HTML at build time and the RSC payloads are only used for client-side hydration (verified against the live site — the content is present in the raw HTML). Blocking /funstack__/ therefore does not affect how Google sees the actual pages.

Verification

  • Ran the docs build and confirmed the updated robots.txt is copied verbatim into dist/public/.
  • Confirmed via @funstack/static docs that all RSC payloads are emitted under /funstack__/.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FtR8TfdEtzckdyAuTsAbnP


Generated by Claude Code

RSC payload files under /funstack__/ were being crawled by Google and
reported as duplicate content in Search Console. They are internal
assets fetched by the client runtime, not pages, so exclude them from
crawling.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FtR8TfdEtzckdyAuTsAbnP
@uhyo
uhyo merged commit d3a7a1f into master Aug 26, 2026
1 check passed
@uhyo
uhyo deleted the claude/docs-google-indexing-3jqru1 branch August 26, 2026 03:04
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