Build resource environment switching for published apps
Organizations on paid plans can prompt the app building agent to use resource environments in published apps. Resource environments enable you to run a function against different configurations of the same resource, such as staging and production, and were previously only available in Edit mode for apps.
Published apps do not include an environment toggle by default.
Optionally, prompt the agent to add a UI element that allows app users to switch between resource environments.
In addition, you can use the _environment URL query parameter to open an app in a different environment, such as ?_environment=staging. This URL parameter works automatically and does not require prompting.