Multi domains, 1 worker

It is possible for a worker to have more than one subdomain (e.g. 1.example.com and 2.example.com) and it be able to tell the difference when handling the request? So domain 1 would say “hallo world”, and domain 2 would respond with “Goodbye world”.
2 Replies
zegevlier
zegevlier2y ago
Yup. What part of this are you having issues with?
Tin Cap
Tin Cap2y ago
Yep. You can bind multiple routes to a single worker and you can analyze the request path in your worker.
Want results from more Discord servers?
Add your server