Snel icon indicating copy to clipboard operation
Snel copied to clipboard

Support reverse proxying a route in the dev server.

Open tracker1 opened this issue 4 years ago • 3 comments

A nice to have feature would be to be able to reverse proxy a fixed route in the dev server.

ie: /api points to http://localhost:8888/api or just a bare server... if the prefix route/slice exists on both sides, it should be declared on both sides, if a trailing slash is used on either side, it should be used on both sides.

When I tend to deploy applications, they're usually sliced off via na ingress server with things like /auth or /api pointing to another resource on the ingress host... this is difficult to replicate if the dev server doesn't also allow a reverse proxy.

Nice to have would be https support for the proxied server, since one may want to target a live API when developing an application.

tracker1 avatar Aug 10 '21 15:08 tracker1

@tracker1: How valuable would this enhancement be for you? I'm asking as I encourage my students to work on issues which are funded via https://gitcoin.co ...

michael-spengler avatar Mar 05 '22 15:03 michael-spengler

I deploy many applications via solutions like: https://spheron.network/ ... might be helpful for some developers reading this.

michael-spengler avatar Mar 08 '22 19:03 michael-spengler

@michael-spengler sorry for the very delated response... TBH, I was just toying around with this, not using it for a production project... I would say the feature to be able to reverse proxy from a few routes is very important for UI development. Most of the apps I've worked on for the last several years has used route slices in order to access applicable api backends without worrying about CORS controls.

tracker1 avatar Mar 09 '22 19:03 tracker1