Skip to content

Commit b4d5fe2

Browse files
committed
Small tweaks
1 parent 6f94f7f commit b4d5fe2

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

docs/testing-deployment-publishing/development-environments/development-environments.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,24 @@ A single FlutterFlow project can have **multiple environments**, each mapped to
105105

106106
![flutterflow-environment](../imgs/flutterflow-environment-update.avif)
107107

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.
108+
You must complete the Firebase or Supabase setup for an 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.
110109

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.
110+
#### Configuring Firebase
111+
If your project uses Firebase, you'll need to create a separate Firebase project in the Firebase Console for each environment. Then, you can change the selected environment in the Firebase settings page (see below), and 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.
112+
113+
114+
![firebase-dev-env-config.png](../imgs/firebase-dev-env-config.png)
115+
116+
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.
117+
118+
:::info
119+
The data that you add to Firebase through the Content Manager is specific to the Firebase project, and environment, that you have selected.
112120
:::
113121

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.
122+
#### Comnfiguring Supabase
123+
If your project uses Supabase, you'll need to [**set up a new Supabase project**](../../ff-integrations/supabase/supabase-setup.md) for each environment.
124+
125+
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.
116126

117127
<div style={{
118128
position: 'relative',
@@ -140,10 +150,12 @@ If your project uses Supabase, you'll need to [**set up a new Supabase project**
140150
</div>
141151
<p></p>
142152

143-
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-
:::
153+
:::note
154+
It's recommended that you keep schemas consistent between the different Supabase environments. It's also recommended that you
155+
**Get Schema** from the Productio environment and build from there.
156+
:::
157+
145158

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.
147159

148160

149161

74.8 KB
Loading

0 commit comments

Comments
 (0)