PizzaMarinara
CDCloudflare Developers
•Created by PizzaMarinara on 3/23/2025 in #workers-help
Multiple workers in different subdomains of same domain
anyway, this worked! Thank you for pointing it out, I totally missed that the config was needed also in the
wrangler.jsonc
file and not just in the Settings tab of the worker page. I think this can be marked as solved 🙂11 replies
CDCloudflare Developers
•Created by PizzaMarinara on 3/23/2025 in #workers-help
Multiple workers in different subdomains of same domain
dunno if it's relevant but it's a simple redirecting page with a given parameter.
example:
worker1.mydomain.com?video=cats
will return a 302 redirect to a cat video on youtube11 replies
CDCloudflare Developers
•Created by PizzaMarinara on 3/23/2025 in #workers-help
Multiple workers in different subdomains of same domain
the only difference is that the one working is the "Worker only" kind of setup, just plain simple .js function with no assets nor .html files
11 replies
CDCloudflare Developers
•Created by PizzaMarinara on 3/23/2025 in #workers-help
Multiple workers in different subdomains of same domain
this is the wrangler.jsonc of the worker that functions correctly
11 replies
CDCloudflare Developers
•Created by PizzaMarinara on 3/23/2025 in #workers-help
Multiple workers in different subdomains of same domain
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "worker-name",
"main": "src/index.js",
"compatibility_date": "2025-03-20",
"observability": {
"enabled": true
}
}
11 replies
CDCloudflare Developers
•Created by PizzaMarinara on 3/23/2025 in #workers-help
Multiple workers in different subdomains of same domain
Hm no, I was missing that probably! What makes me wonder is that the first worker with the subdomain didn't need the wrangler configured like that, it just worked
11 replies