follow up to serveconfig (#4820)

* remove latent dbg!

* cleanup serveconfig
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-10-20 12:22:35 -04:00
1 parent 7408a33be7
commit 306639ee9f
5 files changed
+120 -119

No files matched your search

@@ -3,13 +3,20 @@
use dioxus::prelude::*;
fn main() {
dioxus::launch(|| {
rsx! {
Comp {}
Comp {}
Button {}
}
});
// we split these two to ensure `dioxus::serve` works properly.
#[cfg(feature = "server")]
dioxus::serve(|| async move { Ok(dioxus::server::router(app)) });
#[cfg(not(feature = "server"))]
dioxus::launch(app);
}
fn app() -> Element {
rsx! {
Comp {}
Comp {}
Button {}
}
}
#[component]