@Quentin how does WeWeb’s native Xano integration handle branching? I’m guessing with the current integration that WeWeb always use the live branch. Is there any way to use a non-live branch in a project?
Here’s how I’m currently thinking through an ideal setup—
Live/production environment
My WeWeb app is live on a specific domain
WeWeb uses my live Xano API by default
Testing environment
I think I would need an additional custom domain so I can copy the live project, publish it to “dev.testing.mywebsite.com” (or something similar), and begin making edits and publishing those edits to dev.testing.mywebsite.com so I can test them in a “real” environment.
When I’m ready to go live with this version, I would need to remove the live WeWeb’s domain and add it to the new WeWeb app.
Ideally, there would be a setting on the WeWeb<>Xano integration (under Xano in the plugin settings) to configure WeWeb to work alongside Xano’s versioning logic. IE, I could select which version I would want to use, and if I selected one of my non-live branches (such as branch v2), WeWeb would add :v2 to all API endpoints
From what I can tell, everything above is possible except for the bolded “Ideally…” component, but I’d love to hear from someone on the WeWeb team to confirm (or suggest a different route).
Adding the need to the roadmap for Xano. In the meantime, I suggest using the REST API plugin and concatenate based on a variable containing the API base URL, and change it when in prod.
Hi friends! Is moving from the Xano plugin to the REST plugin still the recommended way to manage working across branches with Xano as backend? Or is there another way to work with/hack the plugin so we can keep using those nice picklists?
@Quentin as @caffeinatedwes mentioned above… it would be ideal to have WW staging environment deployed onto a custom URL – any chance this is on roadmap as part of branch updates?
for us, this is necessary due to how GraphQL endpoints are hit. we utilize two backends - Xano and custom in-house via GraphQL.
Ideally, we have one WeWeb project (lets say “internal admin”)
Xano integration: WW editor => configured to hit Xano dev branch and db; WW staging => hit Xano staging branch and db; WW production => Xano production branch and db
We’d want to configure env variable for GQL queries from WW to set request URLs by environment (WW editor => GQL dev, WW staging => GQL staging, WW production => GQL prod)
can you let me know if this will be possible? trying to avoid needing to copy/recreate new WW environments to ‘carry over’ and deploy changes – especially because updating the production domain then becomes a bit tricky within WW (unless I’ve been doing it wrong).
Hi @Quentin, could you clarify that your screenshot is from the auth plugin? In the “regular” plugin, I don’t have a “In staging” input.
If that is the auth plugin, when you reference adding support to Xano branches in the plugin in the following weeks, are you referring to the regular plugin, or the auth plugin?
The differentiation of data source functionalities between the plugins has left me a bit confused. In my understanding, the “in staging” functionality between the two plugins seems less useful when used together because it would require blending live and test data in the staging environment. I don’t image that one would be the desired environment. Am I missing something? Do some people just use the auth plugin?