Add Worker routes for sitemap.xml and robots.txt

Pages was serving index.html (SPA fallback) for these paths because no Worker
route existed to intercept them. Worker already has serveSitemap() and the
robots.txt inline response — they just weren't being reached.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
King Omar 2026-07-12 13:55:42 +10:00
parent 808de57b04
commit 046937dc37

View file

@ -45,6 +45,14 @@ zone_name = "theradicalparty.com"
pattern = "theradicalparty.com/styles.css" pattern = "theradicalparty.com/styles.css"
zone_name = "theradicalparty.com" zone_name = "theradicalparty.com"
[[routes]]
pattern = "theradicalparty.com/sitemap.xml"
zone_name = "theradicalparty.com"
[[routes]]
pattern = "theradicalparty.com/robots.txt"
zone_name = "theradicalparty.com"
# Weekly digest — Monday 9am AEST (Sunday 23:00 UTC) # Weekly digest — Monday 9am AEST (Sunday 23:00 UTC)
[triggers] [triggers]
crons = ["0 23 * * SUN"] crons = ["0 23 * * SUN"]