feat: document and re-export dioxus-cli-config (#3515)

* feat: document and re-export dioxus-cli-config
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-01-07 15:39:14 -08:00
1 parent d75cb59491
commit bb3fd38231
7 files changed
+176 -29

No files matched your search

+2 -2
View File
@@ -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())