Change Dev/Prod API URL

  • kingdragxn-1330679641958256762

    Jay | DRAGXN

    20 days 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

    20 days ago

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

    Jay | DRAGXN

    19 days 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

    19 days ago

    Change API Based on Environment (Dev/Prod)

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.