How to use configuration to control the API's end point?

Database & APIs

Hi there,

I have configured an API call for backend data access. However, the API's endpoint URL is different per the environment type. For example, the development API URL vs the production API URL.

Is there a way we can leverage some kind of configuration file to control what API endpoint URL to use in FlutterFlow?

What I am trying to accomplish is, that when the implementation using FlutterFlow is deployed to the production, I want to switch the API URL to a different URL which is the production URL for the API. And I am hoping I can just change some configuration entry for it.

Thanks in advance for your assistance.

What have you tried so far?

I searched the forum and googled the internet for the solution. I couldn't find any solution or any official solution from Flutter. I guess I can go to mess around the generated Flutter code to accomplish this. However, I would like to check with the community to see how people solved this problem.

Thanks

Did you check FlutterFlow's Documentation for this topic?
No
1
7 replies