sveltia / sveltia-cms

Alternative to Netlify/Decap CMS. Fast, lightweight, Git-based headless CMS. Modern UX, first-class i18n support, open source & free. Made with Svelte.
MIT License
750 stars 34 forks source link

Cannot use GitHub backend #103

Closed HansG9 closed 4 months ago

HansG9 commented 4 months ago

I try to use the GitHub backend but sveltiacms just shows the ability to "Work with Local Repository" instead of a login button. My config.yml (all capitalized words normally are replaced with my credentials):

backend: name: "github" repo: "ME/MYREPO" branch: "main" # Branch to update (optional; defaults to master) base_url: "https://api.MYURL.com" auth_endpoint: "auth"

kyoshino commented 4 months ago

Thanks for reporting the issue. Hmm, not sure what’s happening. I just tested with my client’s Sveltia CMS instance, but it showed the Sign In with GitHub button as expected.

Just in case: You’re using Sveltia CMS remotely, right? If you’re running it locally, the Work with Local Repository button will always appear. (Technically you can use GitHub directly from a local instance, but there is no UI for that)

HansG9 commented 4 months ago

Ahh no i was just running it on localhost to try and test out the differences to decap

kyoshino commented 4 months ago

Ah got it! Then it’s rather better to work with a local repository because changes will not be committed 🙂

Well, I’ll create a demo site once the “test” backend is supported!