zegevlier
zegevlier
CDCloudflare Developers
Created by zegevlier on 3/31/2023 in #workers-help
Local development over local origin
Hey 👋 I have a local origin, http://localhost:5000, and a worker that only responds to routes that start with /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/*. I've tried using --host "http://localhost:5000" and --local-upstream "http://localhost:5000", but both of these seemed to always make my worker 404. Same if I added --route "/api/*. Is it possible to do this? If so, how?
2 replies