Need help setting up worker route with custom domain

I've a Vercel hosted site and domain is hosted at Hostinger. I added a <DOMAIN>/image/* path for my image transformation worker. When I added my domain to cloudflare it was working as expected and transforming images, but my vercel site was not loading. Then I added A and CNAME records from Vercel to Cloudflare and updated SSL?TSL settings to Full Strint which made my vercel site functional. But the image-transformation path started returning 404 pages from Vercel. So I need help in setting up my image-transformation path along with my already working Vercel site on my custom domain
2 Replies
piplup
piplupOP4mo ago
When I updated path of Cloudflare's default A records, it made the both site and image transformations woking. So I end up deleting Cloudflare's A records. Let me know if that's fine.
Chaika
Chaika4mo ago
You shouldn't have any A/etc records pointing to Cloudflare's proxy IPs within your CF DNS visible to you. Only thing you should see is Vercel's/your actula host's dns records. Rest makes sense to me

Did you find this page helpful?