Is it Possible to Configure Vite Proxy with dynamic target? #21120
Closed
trofe-doorloop
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to configure vite proxy, where instead of setting hardcoded target value, I set a function that returns a target string?
My use case is: if the request has header
X-Bequalstrue- I want targethttp://localhost:3000. If does not equaltrue-> target should behttp://localhost:3001Beta Was this translation helpful? Give feedback.
All reactions