How to switch between xano data sources.
There 's currently a bug /limitation with the Branch Name (and a few other ) formula when used in the editor . This means that while your branch might be dev or similar , it will always return main within the editor since it 's evaluated outside of the canvas /iframe where the editor project itself is running on the main branch . We 're actively working on a fix for this to make sure that all formula evaluation happens within the iframe to ensure all evaluations are accurate . As a temporary fix , you could use a formula like [this ] ( https://editor.nordcraft.com/projects/amethystjangofettworthybear/branches/start/formulas/inIframe?rightpanel=style ) that will detect if the formula is evaluated within an iframe or not . You could use that in combination with the Branch Name formula to ensure you always use your staging data if inIframe === true || 'Branch Name' !== 'main' . That should mean you will always use staging data in the editor + on preview branches . You can see how this would work [here ] ( https://editor.nordcraft.com/projects/amethystjangofettworthybear/branches/start/components/HomePage?selection=apis.JSON%2520API.url.formula&rightpanel=style ) and look at the network requests . It also uses the "staging " url on the [preview url ] ( https://start-amethystjangofettworthybear.nordcraft.site/ ) But this method would need me to update my endpoints one by one . Is there a way i could update the baseUrl to have this because i have a lot of endoints
.jpeg/public)