Skip to content

Keep license texts and the 404 page out of the index - #23

Merged
bherbruck merged 1 commit into
mainfrom
seo-noindex-notices-404
Oct 25, 2026
Merged

bherbruck merged 1 commit into
mainfrom
seo-noindex-notices-404

Conversation

@bherbruck

Copy link
Copy Markdown
Collaborator

Search Console lists notices/DOMPurify-LICENSE.txt and SolidCraft-Apache-2.0.txt as duplicates.

  • /notices/* is now served with X-Robots-Tag: noindex. The _headers file is written by scripts/validate-output.ts (it hashes the inline scripts for the CSP), so the rule goes there.
  • 404.html is noindex instead of index, follow (BaseLayout takes a robots prop; the default is unchanged).
  • The output check now fails if 404.html is not noindex.

Every other page still builds with index, follow and its canonical (checked home, mcp and the route check in validate-output). biome, typecheck, unit tests and build pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Deploying solidcraft-landing with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4297659
Status: ✅  Deploy successful!
Preview URL: https://e0dfee01.solidcraft-landing.pages.dev
Branch Preview URL: https://seo-noindex-notices-404.solidcraft-landing.pages.dev

View logs

@bherbruck
bherbruck merged commit b022cbb into main Oct 25, 2026
2 of 3 checks passed
@bherbruck
bherbruck deleted the seo-noindex-notices-404 branch October 25, 2026 22:39
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