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:
parent
808de57b04
commit
046937dc37
1 changed files with 8 additions and 0 deletions
|
|
@ -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"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue