You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/testing-deployment-publishing/development-environments/development-environments.md
+40-8Lines changed: 40 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,19 +100,51 @@ After switching to an environment, FlutterFlow generates code specific to that e
100
100
You also may see different project errors depending on which environment you have selected.
101
101
:::
102
102
103
-
### Configuring Firebase for each Environment
104
-
A single FlutterFlow project can have**multiple environments**, each mapped to its**own Firebase project**. This ensures that environments like`Development`,`Staging`, and`Production`remain independent, giving you better control over your app's data and behavior throughout different stages of development.
103
+
### Configuring Firebase or Supabase for each Environment
104
+
A single FlutterFlow project can have**multiple environments**, each mapped to its**own Firebase or Supabase project**. This ensures that environments like`Development`,`Staging`, and`Production`remain independent, giving you better control over your app's data and behavior throughout different stages of development.
If your project uses Firebase, you'll need to [**manually configure a new Firebase project**](../../ff-integrations/firebase/connect-to-firebase-setup.md#connect-an-existing-firebase-project-manually) for each environment. This requires setting up a new project in the Firebase console and linking it to the selected environment in FlutterFlow.
108
+
:::info[For Firebase]
109
+
If your project uses Firebase, you'll need to create a separate Firebase project in the Firebase Console for each environment and then follow the steps to [**manually configure the Firebase project**](../../ff-integrations/firebase/connect-to-firebase-setup.md#connect-an-existing-firebase-project-manually) for each one. Additionally, you must manually set up [**Firestore rules**](../../ff-integrations/database/cloud-firestore/firestore-rules.md) and [**collections**](../../ff-integrations/database/cloud-firestore/creating-collections.md) for the new environment.
109
110
110
-
:::info
111
-
- You must complete the Firebase setup for the new environment before you can test your app using that environment. However, this doesn't stop you from continuing to run and test your app in other environments. Just switch back to production, and you can keep testing while finishing the setup for the new environment.
112
-
- You must manually set up [**Firestore rules**](../../ff-integrations/database/cloud-firestore/firestore-rules.md) and [**collections**](../../ff-integrations/database/cloud-firestore/creating-collections.md) for the new environment.
113
-
- Data that you add to Firebase through the Content Manager is specific to the Firebase project, and environment, that you have selected
111
+
**Note** that the data that you add to Firebase through the Content Manager is specific to the Firebase project, and environment, that you have selected.
114
112
:::
115
113
114
+
:::info[For Supabase]
115
+
If your project uses Supabase, you'll need to [**set up a new Supabase project**](../../ff-integrations/supabase/supabase-setup.md) for each environment. Create environment-specific values like `SupabaseAPIURL` and `SupabaseAnonKey`, and then configure the Supabase properties to point to these newly created values. Below is an example of how it would look like.
116
+
117
+
<div style={{
118
+
position: 'relative',
119
+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
Whenever you switch to a different environment, be sure to click the **Get Schema** button to fetch any updates or changes in the database.
144
+
:::
145
+
146
+
You must complete the Firebase or Supabase setup for the new environment before you can test your app using that environment. However, this doesn't stop you from continuing to run and test your app in other environments. Just switch back to production, and you can keep testing while finishing the setup for the new environment.
0 commit comments