fix a few CLI errors
This commit is contained in:
1 parent
e745212157
commit
194d90e66f
6 files changed
+15
-14
No files matched your search
@@ -49,7 +49,7 @@ fn main() {
|
||||
// build our application with some routes
|
||||
let app = Router::new()
|
||||
// Server side render the application, serve static assets, and register server functions
|
||||
.serve_dioxus_application("", ServeConfig::builder().build(), || {
|
||||
.serve_dioxus_application(ServeConfig::builder().build(), || {
|
||||
VirtualDom::new(app)
|
||||
})
|
||||
.layer(
|
||||
|
||||
@@ -12,8 +12,8 @@ async fn main() {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let _ = PostServerData::register_explicit();
|
||||
let _ = GetServerData::register_explicit();
|
||||
let _ = register_explicit::<PostServerData>();
|
||||
let _ = register_explicit::<GetServerData>();
|
||||
|
||||
axum::serve(
|
||||
listener,
|
||||
|
||||
@@ -14,7 +14,7 @@ use serde::{Deserialize, Serialize};
|
||||
#[cfg(feature = "server")]
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
pre_cache_static_routes_with_props(
|
||||
pre_cache_static_routes(
|
||||
&ServeConfig::new_with_router(
|
||||
dioxus_fullstack::router::FullstackRouterConfig::<Route>::default(),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user