Replies: 1 comment 4 replies
-
Deploy previews are done with the editorial workflow and deploy preview links in Netlify/Decap CMS. Sveltia CMS will implement the feature in v2.0. It’s overkill though, especially when you’re the only user of the CMS. This is a relevant issue, and I plan to solve it in Sveltia CMS: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey.
I am starting to look at how to manage git(hub) branches from the CMS.
I am guessing this is not among the top priorities for Sveltia but I just want to open the discussion and share what I build. I think I can build most things independently and it can be integrated when it is pertinent to do so.
The reason:
All static hosting providers automatically handle multiple environments in sync with git branches. So it is very convenient to have a staging branch in parallel with the production branch to edit content and preview it before making it live. To handle that process in a fluid way, the staging branch has to be merged into the main branch. This cannot be done from Github's frontend. We have to create a pull request to be able to merge. This is meant for disposable "feature branches", not for parallel "environment branches".
This leaves a huge gap in the User Experience.
The user either misses out on the super practical (and free) multi-environment feature of all hosting providers or has to play with git locally which largely defeats the purpose of having an online CMS directly connected to Github or another git platform.
The MVP:
I'll create a small piece of interface to list available branches and their status (behind or ahead of the main branch) and a
merge
button if fast forward is possible.To display this interface in the admin UI, my plan is to mount the Sveltia app on a specific html element instead of letting it take over the whole page.
Possible Inspiration
Keystatic has some branch management built in: Video
Just for reference
As a starting point, I played 5 minutes in the console and was able to list my branches with this piece of code.
Beta Was this translation helpful? Give feedback.
All reactions