parse and inject pre rendered content to work with trunk
This commit is contained in:
1 parent
f96425e425
commit
9877dd7ed8
5 files changed
+132
-85
No files matched your search
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user