feat: document and re-export dioxus-cli-config (#3515)
* feat: document and re-export dioxus-cli-config
This commit is contained in:
1 parent
d75cb59491
commit
bb3fd38231
7 files changed
+176
-29
No files matched your search
@@ -63,8 +63,8 @@ fn main() {
|
||||
)
|
||||
.layer(axum_session::SessionLayer::new(session_store));
|
||||
|
||||
// run it
|
||||
let addr = dioxus_cli_config::fullstack_address_or_localhost();
|
||||
// serve the app using the address passed by the CLI
|
||||
let addr = dioxus::cli_config::fullstack_address_or_localhost();
|
||||
let listener = tokio::net::TcpListener::bind(&addr).await.unwrap();
|
||||
|
||||
axum::serve(listener, app.into_make_service())
|
||||
|
||||
Reference in new issue
Block a user