Hi there,
I have a website that relies on subdomains in URLs like {tenant}.example.com
My website is served in Cloudflare Pages with custom domain example.com
and it works.
However I cannot find a way to point {tenant}.example.com
to example. I made sure that the wildcard DNS points to my Pages website.
When I connect to some-tenant.example.com
it returns a Cloudflare page with “Connection timed out”.
I have tried to add a function to Pages at /functions/[[endpoint]].js
that transforms {tenant}.example.com
to example.com
however it still returns a “Connection timed out”.
Is there a way for Cloudflare to support wildcard custom domain with Pages?
Thanks !