ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข3y agoโ€ข
3 replies
Cory

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.

is there a solution i ammissing here?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Call Azure function from a Worker
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
Restricting worker access?
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
worker route to site
Cloudflare DevelopersCDCloudflare Developers / general-help
5mo ago
Worker Custom Domain without transferring from Route 53
Cloudflare DevelopersCDCloudflare Developers / general-help
4mo ago