Testing worker locally with an existing project
I have an existing Next.js project that is deployed to AWS via SST, but uses a cf worker to reverse proxy to cloudfront, among other things. I'm trying to find a way to run the worker locally, but everything that I've come across is specific to cf Pages and doesn't work for my infra.
Is there a way to have a worker watch a specific port that I run the app on and it just work? 🤞
1 Reply
I think the Miniflare API could help you here: https://github.com/cloudflare/miniflare/blob/v3.20231016.0/packages/miniflare/README.md
GitHub
miniflare/packages/miniflare/README.md at v3.20231016.0 · cloudflar...
🔥 Fully-local simulator for Cloudflare Workers. Contribute to cloudflare/miniflare development by creating an account on GitHub.