Closed jannik4 closed 6 months ago
Problem
Using web.proxy with the cli breaks all requests. It just redirects every request to the proxy.
web.proxy
A quick git blame lead me to this: https://github.com/DioxusLabs/dioxus/commit/ebdb98bff282d32e8c7e6d4a4399eb67d1d5695e. After this commit the axum route is /*path which just catches everything under /. Before this commit it was something like /path/*wildcard.
/*path
/
/path/*wildcard
Steps To Reproduce
Steps to reproduce the behavior:
[[web.proxy]] backend = "http://localhost:5050/api"
dx serve
Expected behavior
Proxy only requests to the proxy that starts with "/api".
Environment:
Problem
Using
web.proxy
with the cli breaks all requests. It just redirects every request to the proxy.A quick git blame lead me to this: https://github.com/DioxusLabs/dioxus/commit/ebdb98bff282d32e8c7e6d4a4399eb67d1d5695e. After this commit the axum route is
/*path
which just catches everything under/
. Before this commit it was something like/path/*wildcard
.Steps To Reproduce
Steps to reproduce the behavior:
dx serve
Expected behavior
Proxy only requests to the proxy that starts with "/api".
Environment: