How to Modify the Request Path in a Node Express Proxy Setup?

16 Replies, 1558 Views

Wow, thanks everyone for the awesome suggestions! I tried the `pathRewrite` option in `http-proxy-middleware` and it worked like a charm. I also played around with the dynamic function approach, and it’s exactly what I needed for handling different paths based on the request.

I’m still curious about the `express-http-proxy` and `fast-gateway` options though—might give those a shot next. And yeah, `nginx` sounds like a beast for scaling, so I’ll keep that in mind for future projects.

Thanks again for all the help—this thread is a goldmine for anyone dealing with Node Express proxy change request path issues! 🙌

Messages In This Thread



Users browsing this thread: 1 Guest(s)