DioxusLabs/dioxus

When using the Axum authentication example, the devserver proxy does not work

Opened this issue · 1 comments

Problem

The server with the authentication layer is listening on port 3000, and works when using dx serve. However, the hot reloader server on port 8080 does not proxy to the other server and throws the error "Backend connection failed. The backend is likely still starting up. Please try again in a few seconds."

I think the issue is here which becomes the address to forward to here

Steps To Reproduce

Steps to reproduce the behavior:

Running the fullstack-auth example has the same issue

Expected behavior

The dev sever should use the correct port to forward requests to.

Environment:

  • Dioxus version: master
  • Rust version: 1.81.0
  • OS info: Windows 10
  • App platform: fullstack

Questionnaire
I would like to fix and I have a solution

Add an argument to the serve command to set the inner server address

jvdwrf commented

I'm wondering how this is supposed to work? Was it tested to function at all with custom (axum) backends?