mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-22 20:23:09 +00:00
fix fullstack build bug when --release (#3078)
* rust 1.82.0 doesn't allow custom profile when release build
This commit is contained in:
parent
21d7916d56
commit
306fbe2e75
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue