Replies: 1 comment 1 reply
-
|
In Dioxus 0.7 fullstack, the server and client are tightly coupled by design — Client only (no server)Use dx serve --platform webor to build without serving: dx build --platform webThis produces static files in Server only (no client build)The panic you see (
Alternative:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i.e. how to
dx serveclient without server and server without clientgoal
running server and client on a seperate port
tries
Cargo.toml features:
main.rs
serving only the server
tried:
dx serve --no-default-features --server, but it starts the client as wellcargo r --no-default-features --features server, but it dies withsupposedly it happens because it would like to serve the client, but can't, right?
how could one avoid requiring an
Appin the server?serving only the client
tried:
dx serve --web, as there's absolutely noserverfeature enabled here AFAIK, still, it starts the serverEDIT: in the end I came up with this
Makefile(do your best to ignore the code-quality, this is pretty much the first one I've ever written), which solves our use-case quite well (apollo):Beta Was this translation helpful? Give feedback.
All reactions