Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix fullstack doc #3071

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading