Environment-specific behavior

Is there a Bubble-recommended way to have workflows and behaviors vary by environment? For example, let’s say I want the system to email me every time a new user signs up in the Live Production site, but I don’t want those emails to be sent when sign-ups happen in the Development environment.

I currently have an option set called Environment with two options: Development and Production. I then have a table/data type called System Configuration with an Environment field/column. Conditional statements throughout the app can ‘do a search’ against my System Configuration table’s first item and grab the environment to inform logic. It works, I’m just wondering if there’s a better way before I do more of it this way. Thanks!

Hi @ThatFizzGuy
You can use the conditions “App version is live” or “isn’t live version”

Screenshot 2022-08-02 at 14.38.31

or

Screenshot 2022-08-02 at 14.37.08

1 Like

Thanks, @viquarahmed07 ! This is exactly why I asked. Embarassed to say I hadn’t seen that until you pointed it out. Much easier, thanks! :slight_smile:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.