From 046937dc37932a4cdc26cacdeccee268ac9c2aab Mon Sep 17 00:00:00 2001 From: King Omar Date: Sun, 12 Jul 2026 13:55:42 +1000 Subject: [PATCH] Add Worker routes for sitemap.xml and robots.txt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- wrangler.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wrangler.toml b/wrangler.toml index b04a8dd..2445411 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -45,6 +45,14 @@ zone_name = "theradicalparty.com" pattern = "theradicalparty.com/styles.css" 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) [triggers] crons = ["0 23 * * SUN"]