# Managing staging and production environments

**URL:** <https://community.weweb.io/t/managing-staging-and-production-environments/10513>\
**Category:** How do I?\
**Created:** [August 28, 2024, 6:05pm UTC](https://community.weweb.io/t/managing-staging-and-production-environments/10513 "2024-08-28T18:05:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![isaacmartin](https://avatars.discourse-cdn.com/v4/letter/i/b782af/32.png) [@isaacmartin](https://community.weweb.io/u/isaacmartin)\
**Post date:** [August 28, 2024, 6:05pm UTC](https://community.weweb.io/t/managing-staging-and-production-environments/10513/1 "2024-08-28T18:05:11Z")

</div>

Staging environments are typically strongly decoupled from production ones. Thus, it would be expected to have different database and api resources in the backend ready to power these different environments. What is the recommended way to tell weweb to use a specific api domain when in stage vs production, for the api calls powering our weweb collections?

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [August 28, 2024, 6:14pm UTC](https://community.weweb.io/t/managing-staging-and-production-environments/10513/2 "2024-08-28T18:14:44Z")

</div>

For now, if you’re using Xano, you can use their branching. If you’re using anything else, you can use my “workaround”, the enviroment handling is coming and it’s on the list of features the team is working on I think. My workaround is for Supabase, but really, it’s same for anything if you’re savvy enough.

> [@\[Supabase\] Switch between Production and Staging in one click](https://community.weweb.io/t/supabase-switch-between-production-and-staging-in-one-click/8972):
>
> Preface Since I kind of opened this discussion a few days ago, in this thread [[Chrome Extension] Supabase Live and Staging](https://community.weweb.io/t/chrome-extension-supabase-live-and-staging/8849) I actually found a really neat way of doing this, at least while WeWeb rolls out their own solution. This solution also doesn’t account for the part where WeWeb uses the Private - Secret keys to fetch things like fetching the users etc. What does this work on? Fetching the tables within your collections creating process a.k.a it can introspect your DB’s schema Changing th…
