You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reading the reference, it seems there is a TAURI_ENV_DEBUG env var that is very useful to discriminate when using --debug, but apparently there is not (or it is not documented) an environment variable that sets whether the build is from a development environment or not. That is: whether tauri dev was called or tauri build was called.
Since the dev environment might rely on external dev servers, while build environment (even when using --debug) is not, I think it could be helpful to have an environment variable for this.
Something like:
TAURI_ENV_DEVELOPMENT — true for dev command, false otherwise.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
reading the reference, it seems there is a
TAURI_ENV_DEBUG
env var that is very useful to discriminate when using--debug
, but apparently there is not (or it is not documented) an environment variable that sets whether the build is from a development environment or not. That is: whethertauri dev
was called ortauri build
was called.Since the dev environment might rely on external dev servers, while build environment (even when using
--debug
) is not, I think it could be helpful to have an environment variable for this.Something like:
Does something like this exist already?
Beta Was this translation helpful? Give feedback.
All reactions