# Backend API URL: TEST vs. PROD

**URL:** <https://forum.bubble.io/t/backend-api-url-test-vs-prod/259306>\
**Category:** Need help\
**Created:** [April 24, 2023, 7:17pm UTC](https://forum.bubble.io/t/backend-api-url-test-vs-prod/259306 "2023-04-24T19:17:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaharrington](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gaharrington](https://forum.bubble.io/u/gaharrington)\
**Post date:** [April 24, 2023, 7:17pm UTC](https://forum.bubble.io/t/backend-api-url-test-vs-prod/259306/1 "2023-04-24T19:17:36Z")

</div>

My Bubble app uses an API Connector to our backend. I need my dev Bubble to call our TEST backend:  
https://xyz- **test**.herokuapp.com/graphql

And our Live Bubble to use our PROD backend:  
https://xyz- **prod**.herokuapp.com/graphql

How do I do this?

---

<div class="post-metadata">

**Author:** ![tylerboodman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tylerboodman/32/242142_2.png) [@tylerboodman](https://forum.bubble.io/u/tylerboodman)\
**Post date:** [April 24, 2023, 7:35pm UTC](https://forum.bubble.io/t/backend-api-url-test-vs-prod/259306/2 "2023-04-24T19:35:57Z")

</div>

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”

---

<div class="post-metadata">

**Author:** ![williamtisdale](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/williamtisdale/32/113723_2.png) [@williamtisdale](https://forum.bubble.io/u/williamtisdale)\
**Post date:** [April 24, 2023, 7:36pm UTC](https://forum.bubble.io/t/backend-api-url-test-vs-prod/259306/3 "2023-04-24T19:36:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [July 3, 2023, 7:18pm UTC](https://forum.bubble.io/t/backend-api-url-test-vs-prod/259306/4 "2023-07-03T19:18:28Z")

</div>

Closed on July 3, 2023, 7:18pm UTC

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