fix warp release builds
This commit is contained in:
1 parent
7ff5d356d5
commit
64c7fda201
1 file changed
+4
-6
@@ -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")))]
|
#[cfg(not(all(debug_assertions, feature = "hot-reload", feature = "ssr")))]
|
||||||
{
|
{
|
||||||
warp::path("_dioxus/hot_reload").and(warp::ws()).map(|| {
|
warp::path("_dioxus/hot_reload")
|
||||||
Response::builder()
|
.and(warp::ws())
|
||||||
.status(StatusCode::NOT_FOUND)
|
.map(warp::reply)
|
||||||
.body("Not Found".into())
|
.map(|reply| warp::reply::with_status(reply, warp::http::StatusCode::NOT_FOUND));
|
||||||
.unwrap()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
#[cfg(all(debug_assertions, feature = "hot-reload", feature = "ssr"))]
|
#[cfg(all(debug_assertions, feature = "hot-reload", feature = "ssr"))]
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user