Pricing Blog

Supabase local development

  • xavi_35974-1444964276874776576

    Xavi

    2 days ago

    Is it possible to set up my Supabase service to talk to my local Supabase instance during development? Currently I'm setting the url to my local Supabase project but it's not working. Thanks!
  • erikbeus-1444966339814101113

    Erik Beuschau

    2 days ago

    If you set the base url of your service as a global formula, you can make that formula dependent on what you need to toggle it between development/production. For instance a cookie, something in local storage, or if the branch [is the main branch](https://docs.nordcraft.com/references/formulas#branch-name) or not
  • xavi_35974-1444967581449457704

    Xavi

    1 day ago

    Thanks! I'll give it a try!
  • lucasg-1445098288306065520

    Lucas G

    1 day ago

    It won’t work if your local instance is not exposed to the internet
  • Like via a reverse proxy for example