feat(proxy): add router to support dynamically set the target#13968
feat(proxy): add router to support dynamically set the target#13968Fatpandac wants to merge 2 commits into
Conversation
|
|
|
Thanks for the PR. There is another PR implementing the same but also supporting a more extensive API here: It seems we never ended up discussing this one in a team meeting. I'll add it to the Team board. Just to set expectations, it may take us a few weeks as we just met today. |
|
Have any news about this PR? |
|
That would be very nice to have this feature. I wonder what are the workaround in the current situation. I have see one custom plugin vite-plugin-proxy-middleware but didn't tested it yet. This PR #2808 seems to be more developed. |
|
any updates? |
| /** | ||
| * dynamically set the target | ||
| */ | ||
| router?: (req: http.IncomingMessage) => HttpProxy.ServerOptions['target'] |
There was a problem hiding this comment.
Instead of adding a new property, would you change the existing target property to receive a function?
|
It's 2026, any progress? |
|
@tbontb-iaq Feel free to create a new PR that addresses #13968 (comment) |
Description
add router option to support dynamically set the target
Additional context
URL example:
/dynamicProxy/localhost:9607/anotherAppConfiguration
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).