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? ๐Ÿคž
Was this page helpful?