Can't access worker "route" from inside SvelteKit worker function
I have a worker that uploads images to R2, and I call it via a fetch via an API route in my SvelteKit application. I have a custom "route" assigned to it, that is in the same zone as the SvelteKit application (hosted on Cloudflare). It only works when I fetch the original URL
.workers.dev
.workers.dev
, and not the custom one I have set up which is essentially
site.com/image-upload/*
site.com/image-upload/*
even though if I go tot he URL via the browser, it works fine.