Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Routing with workers - Cloudflare Developers
CD
Cloudflare Developers
•
3y ago
•
1 reply
SmallShen
Routing with workers
I have a worker routes that listen to
example.com/api/*
example.com/api/*
,
example.com
example.com
is hosted on pages
. If I directly visit the api routes
, it invoke the worker
, but when I try to fetch
/api/*
/api/*
endpoints in the page function
, it will try to fetch from pages not workers
. How do I solve this issue
?
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Web with worker routing issue
CD
Cloudflare Developers / pages-help
13mo ago
Issues with functions routing with Nuxt.js
CD
Cloudflare Developers / pages-help
3y ago
NextJS Routing
CD
Cloudflare Developers / pages-help
3y ago
MDX and routing
CD
Cloudflare Developers / pages-help
3y ago