-
I want to know if it's possible to use sveltia without hosting my site on netlify? This is a question I asked on the Decap-CMS issue page that I hope can be solved here. The short form of the question is that, I am hosting my site on GitHub-pages, but I have had to deploy to netlify just to be able to use the CMS. my-site.github-pages - here I view the site my-site.netlify.app/admin - This is the netlify site where I access the CMS The problem with this is that it gives me two platforms to manage (github-pages and netlify) I was hoping I would be able to just stay with one. Here is my site repo in case it helps: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Both Netlify/Decap CMS and Sveltia CMS can be hosted anywhere. But yeah, the documentation is not clear as discussed in your Decap ticket. Sveltia CMS will offer better documents to avoid confusion once it hits the GA. (Especially if you don’t know Decap CMS was Netlify CMS, things might be super confusing) Basically, you have to move away from the Git Gateway backend + Netlify Identity combo to the GitHub backend + an external OAuth client. We provide our own client called Sveltia CMS Authenticator: follow the instructions and you should be able to sign in with GitHub. 🙂 |
Beta Was this translation helpful? Give feedback.
-
We should better explain these different layers 😉
|
Beta Was this translation helpful? Give feedback.
-
Thanks will try this and see if it works. Hope to report back with good news |
Beta Was this translation helpful? Give feedback.
-
Okay the deploy for the sveltia-cms-auth took a while because there seems to be missing steps on the Cloudflare page to get the account id and API key. Also the instructions to get the account id are no longer valid which is in this issue here. What worked for me was to copy the id from the link on the Cloudflare dashboard instead. Apparently you need to create a new API key with permissions to edit the worker, not the global API key one which will not work. One hurdle down.🚶🏽♂️ The small hiccup when trying to deploy the worker is more of a problem with the documentation for Cloudflare on how to get the account id and use the right API key, which is Not really a problem with Sveltia CMS Authenticator |
Beta Was this translation helpful? Give feedback.
-
Now I am able to access the CMS at mysite/admin on GitHub pages, instead of going to the mysite.netlify.app/admin Thank you @kyoshino |
Beta Was this translation helpful? Give feedback.
Both Netlify/Decap CMS and Sveltia CMS can be hosted anywhere. But yeah, the documentation is not clear as discussed in your Decap ticket. Sveltia CMS will offer better documents to avoid confusion once it hits the GA. (Especially if you don’t know Decap CMS was Netlify CMS, things might be super confusing)
Basically, you have to move away from the Git Gateway backend + Netlify Identity combo to the GitHub backend + an external OAuth client.
We provide our own client called Sveltia CMS Authenticator: follow the instructions and you should be able to sign in with GitHub. 🙂