· Experimenting with low-code tools

Using constants in API Calls (url)

Database & APIs
Resolved

I'm sure many are running into this issue: 2 supabase projects in the backend and wanting to make calls to one or the other depending on Test/Prod environments.

In my case, I don't want to go though all my API calls to Supabase changing the project id in the url. So injecting the project id from a variable seems the right approach.

But I'm seeing that there's a solution for that that isn't supporting anymore (using $) and the alternative is using [ ] plus a variable of the Call. Problem with this is I still need to set the variable from the constant on every single call explicitly.

Amy way for the url to pick up the Constant straight away?

What have you tried so far?

Searched this community, and found a couple of alternatives that don't seem optimal

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