ChefTony
ChefTony
CDCloudflare Developers
Created by ChefTony on 7/20/2023 in #workers-help
How to set routes for specific workers?
I have setup my custom domain example.com and now I want to link the route "example.com/worker" to one of my workers and the route "example.com/worker-b" to another worker. The worker was running on "example.com/*" before. I changed the route to "example.com/worker/*" but I always get 404 errors when I try to access it by the new url (/worker/test). The urls from before are still working (e.g. example.com/test). I also set the route = "example.com/worker/*" in wrangler.toml . How can I set up such a route correctly?
1 replies
CDCloudflare Developers
Created by ChefTony on 7/19/2023 in #workers-help
How to change the default environment?
Hi all, I have setup 3 different workers(services?) for my application: default, stage and production. Now in the dashboard overview each one shows "production" above the custom URL. Why does it say "production" and how can i change it for my stage worker to use the stage environment as default?
7 replies