From 906c5ffe2cdb491b35d39023e11c67465a0981da Mon Sep 17 00:00:00 2001 From: Omar Najjar Date: Sun, 13 Apr 2025 01:00:45 +1000 Subject: [PATCH] X --- wrangler.toml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/wrangler.toml b/wrangler.toml index a4be079..b27da84 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -22,10 +22,29 @@ ENVIRONMENT = "production" enabled = true -# Route API requests to your worker +# Main routes for API endpoints [[routes]] pattern = "theradicalparty.com/api/*" zone_name = "theradicalparty.com" +# Media file routes +[[routes]] +pattern = "theradicalparty.com/memes/*" +zone_name = "theradicalparty.com" + +[[routes]] +pattern = "theradicalparty.com/audio/*" +zone_name = "theradicalparty.com" + +# Ensure static assets are properly routed +[[routes]] +pattern = "theradicalparty.com/styles.css" +zone_name = "theradicalparty.com" + +# Catch-all for other pages +[[routes]] +pattern = "theradicalparty.com/*" +zone_name = "theradicalparty.com" +