Skip to content

Commit

Permalink
fix fullstack build bug when --release (#3078)
Browse files Browse the repository at this point in the history
* rust 1.82.0 doesn't allow custom profile when release build
  • Loading branch information
hackartists authored Oct 20, 2024
1 parent 21d7916 commit 306fbe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/builder/fullstack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl BuildRequest {

fn new_server(serve: bool, config: &DioxusCrate, build: &Build) -> Self {
let mut build = build.clone();
if build.profile.is_none() {
if !build.release && build.profile.is_none() {
build.profile = Some(CLIENT_PROFILE.to_string());
}
let client_feature = build.auto_detect_server_feature(config);
Expand All @@ -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.release && build.profile.is_none() {
build.profile = Some(SERVER_PROFILE.to_string());
}
let (client_feature, client_platform) = build.auto_detect_client_platform(config);
Expand Down

0 comments on commit 306fbe2

Please sign in to comment.