Environments

Switch between using Development and Production values when building, previewing, and publishing

Environment Values

In some places where values are set in Draftbit, like a REST API Service's base URL or App and Device Variables, you can specify different values for Development (Dev) and Production (Prod) Environments.

TypeDescription
Development ValuesDevelopment values are used when no Production value is set and when you have selected Dev as the publishing or previewing environment.
Production ValuesProduction values will be used when publishing and previewing in the Prod environment. If unset the Development value will be used.

Previewing Environment

When previewing your app in Web, iOS, and Android, you can choose which environment values to use. You can switch the Preview environment in the top section of the right panel in the Builder.

Draft view always uses the Dev environment.

Publishing Environment

When publishing your app to Web, iOS, or Android, you can choose which environment values to use. You can select which environment to use from the top of the Publishing menu.


What’s Next