*.craftlyapp.com/* as route triggers workers but*craftlyapp.com/* doesn't trigger

For Workers & Pages, what is the name of the domain?

What is the issue or error you’re encountering

I am setting up a cloudflare worker which will log query parameters in my database. All I need is if an user visits this link: craftlyapp .com/?ref=wasif, the worker will trigger, communicate with my render hosted nodejs backend through api call and then my backend will update database. Everything is working smoothly (my backend, workers). Just the workers are not getting triggered when i set this: * craftlyapp .com/ *, i mean it don’t recognise craftlyapp .com/?ref=wasif. but when i set * .craftlyapp .com/ *, it recognises www.craftlyapp .com/?ref=wasif.

What steps have you taken to resolve the issue?

My DNS records are proxied and I have tried this too: craftlyapp .com/ * but no luck.

I solved the issue, the issue was my cloudflare was not configured properly with Render custom domain. Render requires ALIAS or ANAME, but i used A record instead with static IP before. but now i came to know cloudflare supports CNAME flatters (some technology like that) which makes CNAME act like ALIAS/ANAME. so i used CNAME instead for both www. and root domain and boom it worked

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.