Subdomain don't work with Cloudflare pages. HELP

Hi I'm currently building a tool with cloudflare pages, and have a middleware which checks the subdomain and show return a value.

I was able to test this using the test.mysite.pages.dev

but when I connected my domain, and added a wildcard routing, it didn't work.
Also added just a normal domain and still didnnt work.

my DNS
AAAA
*
100::
Proxied


CNAME
mysite.com
mysite.pages.dev


Please help, i've cleared the cache, and reconnected my domain, but the subdomain still don't seem to work.
image.png
Was this page helpful?