Fix client release builds

This commit is contained in:
Evan Almloff 2024-08-27 10:57:50 -05:00
parent 0105cbba3d
commit 0c88b39c76

View file

@ -113,7 +113,7 @@ impl BuildRequest {
fn new_client(serve: bool, config: &DioxusCrate, build: &Build) -> Self {
let mut build = build.clone();
if build.profile.is_none() {
if build.profile.is_none() && !build.release {
build.profile = Some(SERVER_PROFILE.to_string());
}
let (client_feature, client_platform) = build.auto_detect_client_platform(config);