by seanwilson · 3y ago · 0 comments
Correct me if I'm wrong but Decap CMS (previously Netlify CMS) runs in the browser and makes reads/edits via GitHub which can then trigger rebuilds and deploys, but it still needs a small server/proxy I think because CORS stops your browser communicating directly with the GitHub API. Netlify hosts a GitHub backend that proxies requests for you but now you're tied to Netlify and their pricing plan changes.
GitLab and BitBucket will have the same issue I think: https://github.com/isomorphic-git/isomorphic-git#cors-suppor...
Is there a simple solution here with minimal configuration? I guess you could use a browser extension to selectively relax CORS but that's not ideal.
It feels like a Git-based static site generator with a CMS that has Markdown editing and live previews that runs in the browser with minimal hosting/server restrictions would work for a huge number of small websites and blogs.
Decap-CMS demo here: https://cms-demo.netlify.com/#/collections/posts
This problem is completely solved by Surreal CMS [1]. Make your website anyway you want, connect surreal by FTP and let the user/client edit what you permit them to edit. The cost $12 per month is dirt cheap for never having to worry about it, and giving non-tech users a total WYSIWYG editor.
You never know when they'll change their pricing, like when Forestry was recently deprecated in favour of Tina CMS with more limited free plans.
currently this extension works on locally installed version of VS Code on you laptop,but doesn't work on Github Codespaces.
if we could somehow get that to work (within the free tier of github codespaces, with reasonable limits on usage time) i think it would be a winner -- completely online version controlled setup with no dependency on a dev environment installed on your own machine, while serving static sites off say just S3, and still getting a full CMS experience.