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
819 stars 38 forks source link

Cannot sign in locally if Netlify CMS proxy server has been previously used #12

Closed privatemaker closed 1 year ago

privatemaker commented 1 year ago

Hello 👋🏻 I'm very excited about sveltia-cms 😄 I tested it a couple months ago with the local Git repository option and it is all looking wonderfully well done.

However, my deployment still required decap-cms and I reconfigured my dev environment. Since then I cannot get serving locally working again. I get this error:

sveltia-config-error

My config.yml file works just fine with the decap npx netlify-cms-proxy-server so I am sure i'm just misunderstanding something.

Perhaps putting an example config or documenting where sveltia-cms differs from decap-cms would be helpful to me and others.

Anyway, thanks for your hard and really polished work here! Looking forward to future releases 😀

kyoshino commented 1 year ago

Thanks for checking Sveltia CMS! Well, your Decap CMS config file should be able to be reused without any modification. Can you please open Chrome DevTolls and take a screenshot of the Console tab? There would be some errors displayed there.

kyoshino commented 1 year ago

I just deployed version 0.3.3 to make sure errors are always logged in the console. Can you take a screenshot and post it here? Thanks! 🙏🏻

privatemaker commented 1 year ago

Thanks for enabling logging. Previously my console showed no error message. Now I see this:

sveltia-local-error-log

kyoshino commented 1 year ago

Thanks for the screenshot! I think now I understand the cause. Will test and deploy the fix.

kyoshino commented 1 year ago

Just deployed the fix! The issue happened only when the Netlify CMS proxy server was previously used. Please reload the page and try again. I think the documentation is okay because there are no extra steps. 😄

privatemaker commented 1 year ago

Tested. This seems it was exactly the bug and makes sense given fresh state of my dev environment where I had successfully used the local feature. Thank you for the quick investigation + bug fix. Works great again 👌🏻 🥳

kyoshino commented 1 year ago

Given that the main use cases are migrations from Netlify CMS, Sveltia CMS is supposed to be working even in a non-fresh environment 😄 Only the proxy thing is an exception, and I should have noticed it earlier.

Thanks again for reporting this! 💯