I try to setup smooth process where I work in editor only with Xano “edit” branch and test data, not live.
However I have a roadblocks here:
I use direct upload to Xano using jscript code in workflow, axios post to api.
1st problem… I have to add “:edit” which is name of my branch as it doesn’t recognize automatically that I set up Xano plugin to use test branch in editor.
https://xr....xano.io/api:XYZ:edit/user/photo - edit branch https://xr....xano.io/api:XYZ/user/photo - production
Is there any way to conditionally set 2 different workflows for production and edit?? or conditionally add name of branch for editor only and skip for production???
Another problem that in jscript I add auth headers and I get error message: "
This authentication token belongs to a different datasource
could you share how to deal with that?
I have a lot of endpoints with direct photo upload to xano, looks like working with branches and test data will not work for me because of this