parse and inject pre rendered content to work with trunk

This commit is contained in:
Evan Almloff committed 2023-04-02 16:18:15 -05:00
1 parent f96425e425
commit 9877dd7ed8
5 files changed
+132 -85

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ pub fn serve_dioxus_application<P: Clone + Send + Sync + 'static>(
.and(warp::get())
.and(with_ssr_state())
.map(move |renderer: SSRState| warp::reply::html(renderer.render(&cfg))))
.or(warp::path("assets").and(serve_dir))
.or(serve_dir)
.boxed()
}