How do I handle API calls when running Production and Staging environments?

Project Settings

Hi,

I have set up Production as well as Staging environments for my App in Flutterflow using two Firebase projects.

I am also using API calls to Firebase cloud function to fetch data.

Now, when I switch between Prod and Staging environments in Flutterflow, the API calls remain the same. I don't see any ability to specify different API calls based on which environment I am in.

Is there something I am missing?

What have you tried so far?

I switched the environment and went to the API Calls tab to check if I can specify unique URLs but I could not find a way.

You can see that in the two attached images below (One for production and one for staging).

Did you check FlutterFlow's Documentation for this topic?
No
4
1 reply