© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3y ago•
1 reply
zegevlier

Local development over local origin

Hey 👋
I have a local origin,
http://localhost:5000
http://localhost:5000
, and a worker that only responds to routes that start with
/api/*
/api/*
. I would like to test this locally, as if I had a worker set up over an origin hosting that app with as route
/api/*
/api/*
. I've tried using
--host "http://localhost:5000"
--host "http://localhost:5000"
and
--local-upstream "http://localhost:5000"
--local-upstream "http://localhost:5000"
, but both of these seemed to always make my worker 404. Same if I added
--route "/api/*
--route "/api/*
.
Is it possible to do this? If so, how?
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

Local development secret store
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
7mo ago
using dashboard for local development
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
SvelteKit (Vite) + D1 + Prisma Local development
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
13mo ago
Use PGLite with Wrangler for local development
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
17mo ago