fix warp release builds

This commit is contained in:
Evan Almloff committed 2023-04-29 17:32:16 -05:00
1 parent 7ff5d356d5
commit 64c7fda201
1 file changed
+4 -6
+4 -6
View File
@@ -360,12 +360,10 @@ pub fn connect_hot_reload() -> impl Filter<Extract = (impl Reply,), Error = warp
{
#[cfg(not(all(debug_assertions, feature = "hot-reload", feature = "ssr")))]
{
warp::path("_dioxus/hot_reload").and(warp::ws()).map(|| {
Response::builder()
.status(StatusCode::NOT_FOUND)
.body("Not Found".into())
.unwrap()
})
warp::path("_dioxus/hot_reload")
.and(warp::ws())
.map(warp::reply)
.map(|reply| warp::reply::with_status(reply, warp::http::StatusCode::NOT_FOUND));
}
#[cfg(all(debug_assertions, feature = "hot-reload", feature = "ssr"))]
{