Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI Proxy not working #2088

Closed
jannik4 opened this issue Mar 15, 2024 · 0 comments · Fixed by #2108
Closed

CLI Proxy not working #2088

jannik4 opened this issue Mar 15, 2024 · 0 comments · Fixed by #2108
Assignees
Labels
bug Something isn't working cli Related to the dioxus-cli program

Comments

@jannik4
Copy link

jannik4 commented Mar 15, 2024

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: ebdb98b.
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:

  • Create a Dioxus.toml with:
[[web.proxy]]
backend = "http://localhost:5050/api"
  • Run the cli dx serve
  • Open in browser.

Expected behavior

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

Environment:

  • Dioxus version: master
  • Rust version: 1.76.0
  • OS info: WSL
  • App platform: web
@ealmloff ealmloff added bug Something isn't working cli Related to the dioxus-cli program labels Mar 15, 2024
@jkelleyrtp jkelleyrtp self-assigned this Mar 18, 2024
@jkelleyrtp jkelleyrtp added this to the 0.5.0: Signals milestone Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the dioxus-cli program
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants