Change Dev/Prod API URL

  • kingdragxn-1330679641958256762

    Jay | DRAGXN

    4 months ago

    I'm using a local instance of Supabase as I'm developing and the API URL would be different than production.

    I was wondering if it was possible to change a URL based on if it's in the builder vs the published site.

    Example:
    - Dev: url-one.com/team-members
    - Prod: url-two.com/team-members
  • lucasg-1330680265517043743

    Lucas G

    4 months ago

    There’s a branch name formula node that might help
  • kingdragxn-1330771164754346014

    Jay | DRAGXN

    4 months ago

    Disclaimer: I am new to Toddle, this is my first project.

    But based on what @Lucas G said, this is what I've done in case someone else has this same problem:
    1330771164536111184-image.png
    🙌2
  • kingdragxn-1330973633052672111

    Jay | DRAGXN

    4 months ago

    Change API Based on Environment (Dev/Prod)