I’ve setup a worker and have followed some guides where I map a CNAME to the worker url.
So for instance:
custom_domain.com/api/v1/function → custom_function.workers.dev/api/v1/function
The DNS CNAME will be custom_domain.com ==> custom_function.workers.dev
And we can add the route custom_domain.com/api/v1/function into the worker configuration.
The above works.
But I’m trying to find instructions on how to set up additional workers that can be mapped to the same domain
So for instance
- custom_domain.com/api/v1/function1 → custom_function1.workers.dev/api/v1/function1
- custom_domain.com/api/v1/function2 → some_other_function.workers.dev/api/v1/function2
Now since the mapping is done with CNAME, it seems that CloudFlare does NOT support this kind of mapping.
Is my understanding correct?