© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
How to run workers on any subdomain? - Cloudflare Developers
CD
Cloudflare Developers
•
4y ago
•
4 replies
HareBear
How to run workers on any subdomain?
Hi there
!
I have a worker that I
'd like to deploy both dev and production versions of to a zone
. For simplicities sake
, let
's say the zone is
example.com
example.com
.
For my production worker
, I
'd like the worker to listen to every request to any subdomain and path to
example.com
example.com
. To do this
, I
've added the route
*/*
*/*
and this works great
.
However
, I
'd like to try to scope this a little more so that I can add a dev version to this zone too
.
What I
'd ideally like is for my production worker to handler requests that look like this
:
*.example.com/*
*.example.com/*
. I
'd then like my dev worker to handler requests that look like this
:
*.dev.example.com/*
*.dev.example.com/*
.
Is this possible
? Or should I just look into getting a different domain
?
Thanks
!
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
86,942
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Any way to change the workers.dev subdomain?
CD
Cloudflare Developers / workers-and-pages-help
11mo ago
Workers Custom Subdomain
CD
Cloudflare Developers / workers-and-pages-help
11mo ago
Reset workers subdomain
CD
Cloudflare Developers / workers-and-pages-help
2y ago
Workers routes wildcard subdomain affects other subdomains
CD
Cloudflare Developers / workers-and-pages-help
9mo ago