Set environment with javascript

Hi everyone,

i have a resource with two different endpoints. One for staging and one for production.
Can i switch my environment with javascript if i run a script in my app?

Thanks for help! :slight_smile:

Hi @mike_mike,

Are you already using our environments feature? If so, we don't have a way to set the value of the environment using JS :disappointed: Users can select an environment from the UI or follow this method for opening app links in a specified environment using url params