try to pull the default out directory for the fullstack server from the config

This commit is contained in:
Evan Almloff committed 2024-01-31 16:50:54 -06:00
1 parent 13b6f3b9e7
commit 8eda785ace
6 files changed
+19 -10

No files matched your search

+1 -1
View File
@@ -123,7 +123,7 @@ impl Config {
let router = axum::Router::new().register_server_fns(server_fn_route);
#[cfg(not(any(feature = "desktop", feature = "mobile")))]
let router = router
.serve_static_assets(cfg.assets_path)
.serve_static_assets(cfg.assets_path.clone())
.connect_hot_reload()
.fallback(get(render_handler).with_state((
cfg,