Add robots.txt and sitemap for SEO #52
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/sitemap-robots"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
public/robots.txtblocking admin, API, league, and auth-only routes; points crawlers at/sitemap.xmlscripts/generate-sitemap.mjsthat writespublic/sitemap.xmlandpublic/sitemap.xml.gzat build time (6 public URLs)buildscript so files are always fresh on deployFixes #32
Fixes #38
Test plan
npm run sitemap— verifypublic/sitemap.xmlandpublic/sitemap.xml.gzare created with today's datenpm run dev— verifyGET /robots.txtandGET /sitemap.xmlboth return 200 with correct contentpublic/sitemap.xmlis not tracked by git after a fresh generation (git statusshould not show it)🤖 Generated with Claude Code