Set an environment variable during serve for bundling
This commit is contained in:
1 parent
efe08df966
commit
1ed814668a
2 files changed
+5
-2
No files matched your search
@@ -158,7 +158,7 @@ fn get_asset_root() -> Option<PathBuf> {
|
||||
|
||||
*/
|
||||
|
||||
if std::env::var_os("CARGO").is_some() {
|
||||
if std::env::var_os("CARGO").is_some() || std::env::var_os("DIOXUS_ACTIVE").is_some() {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user