Skip to content

Commit 04cd171

Browse files
committed
Added supabase dev env info
1 parent f12cf94 commit 04cd171

File tree

2 files changed

+40
-8
lines changed

2 files changed

+40
-8
lines changed

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

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,51 @@ After switching to an environment, FlutterFlow generates code specific to that e
100100
You also may see different project errors depending on which environment you have selected.
101101
:::
102102

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

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

108-
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.
109110

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.
114112
:::
115113

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
120+
height: 0,
121+
width: '100%'}}>
122+
<iframe
123+
src="https://demo.arcade.software/VxEaC6uxhnB4zzluIE9i?embed&show_copy_link=true"
124+
title=""
125+
style={{
126+
position: 'absolute',
127+
top: 0,
128+
left: 0,
129+
width: '100%',
130+
height: '100%',
131+
colorScheme: 'light'
132+
}}
133+
frameborder="0"
134+
loading="lazy"
135+
webkitAllowFullScreen
136+
mozAllowFullScreen
137+
allowFullScreen
138+
allow="clipboard-write">
139+
</iframe>
140+
</div>
141+
<p></p>
142+
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+
:::
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.
147+
116148

117149

118150
### FAQ
Binary file not shown.

0 commit comments

Comments
 (0)