Skip to content

Commit

Permalink
fix fullstack doc
Browse files Browse the repository at this point in the history
  • Loading branch information
chungwong committed Oct 18, 2024
1 parent 21d7916 commit fc25a2b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/fullstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ use dioxus::prelude::*;
fn main() {
// Get the address the server should run on. If the CLI is running, the CLI proxies fullstack into the main address
// and we use the generated address the CLI gives us
let address = dioxus_cli_config::RuntimeCLIArguments::fullstack_address_or_localhost();
let address = dioxus_cli_config::fullstack_address_or_localhost();
// Set up the axum router
let router = axum::Router::new()
Expand Down Expand Up @@ -160,11 +160,7 @@ use dioxus::prelude::*;
fn main() {
// Get the address the server should run on. If the CLI is running, the CLI proxies fullstack into the main address
// and we use the generated address the CLI gives us
let cli_args = dioxus_cli_config::RuntimeCLIArguments::from_cli();
let address = cli_args
.as_ref()
.map(|args| args.fullstack_address().address())
.unwrap_or_else(SocketAddr::from(([127, 0, 0, 1], 8080)));
let address = dioxus_cli_config::fullstack_address_or_localhost();
// Set up the axum router
let router = axum::Router::new()
Expand Down

0 comments on commit fc25a2b

Please sign in to comment.