Backend API URL: TEST vs. PROD

My Bubble app uses an API Connector to our backend. I need my dev Bubble to call our TEST backend:

And our Live Bubble to use our PROD backend:

How do I do this?

I setup the API call, then Right click → Copy and paste it, put something like (test) in the name, then change the URL so you have your test and live versions of each.

Then in your workflows put a condition on the real one “When app version is live is yes” then add the new call dev call and put the opposite “is no”

Everywhere you use the call, you can use the built in “Isn’t live version” is “yes”.formatted as text and for yes do the development url and for no do the live url.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.