DioxusLabs / dioxus

Fullstack app framework for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
20.47k stars 786 forks source link

CLI Proxy not working #2088

Closed jannik4 closed 6 months ago

jannik4 commented 6 months ago

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:

Expected behavior

Proxy only requests to the proxy that starts with "/api".

Environment: