Data source environments
Last updated
Last updated
Data source environments play a pivotal role in managing and segregating data flows in applications. They provide a structured way to differentiate between different stages of application deployment.
In UI Bakery, there are three distinct environments for data sources:
Default: This is the primary environment used in scenarios where neither Staging nor Prod is enabled. It serves as a fallback, ensuring that there's always an environment in action even if no specific environment is set.
Staging: This is a testing environment, often mirroring the production but used for testing purposes. It provides a sandbox to validate data source configurations, ensuring they function as expected before moving to production.
Production (Prod): This is the environment where the production data sources live. It's the environment the end-users interact with.
Both Staging
and Prod
environments can be enabled separately based on your requirements. However, if neither is activated, the system will use the Default
environment.
Navigate to your data source settings and turn on the Enable environments toggle.
For each environment, configure their settings and click Connect data source.
You need to configure and connect each environment separately.
Data source environments are intrinsically linked to application environments. When you move your app from one environment to another, the corresponding data source environment is also switched, ensuring data compatibility.
When working in Builder mode, users have the flexibility to switch between different environments. This feature is particularly useful for testing queries. This way, users can validate the correctness of their queries across different stages without affecting the end-user experience or data integrity.
The environment selection option is only available when the app is using at least one data source that has environments enabled for it.