Skip to content

seo: add robots.txt pointing crawlers to the sitemap - #2

Open
dimoobraznii1986 wants to merge 1 commit into
mainfrom
seo-robots-txt
Open

seo: add robots.txt pointing crawlers to the sitemap#2
dimoobraznii1986 wants to merge 1 commit into
mainfrom
seo-robots-txt

Conversation

@dimoobraznii1986

Copy link
Copy Markdown
Contributor

What

Adds public/robots.txt allowing all crawlers and advertising the build-time sitemap-index.xml.

Why

Prompted by a Google Search Console "Excluded by 'noindex'" notice. Investigation confirmed the flagged pages are all Astro redirect stubs + the 404 page (correctly noindexed) — no bug. The one genuine gap was the absence of a robots.txt, now added to round out the existing SEO setup (canonical URLs, OG/Twitter cards, sitemap).

Verified

  • npm run build clean; dist/robots.txt present
  • CNAME and .nojekyll survive the build
  • Sitemap lists only the 10 real indexable pages

🤖 Generated with Claude Code

Allow all crawlers and advertise the build-time sitemap-index.xml.
Rounds out the existing SEO setup (canonical URLs, OG/Twitter, sitemap).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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