Hi everyone! 👋
I’m working on a project using PayloadCMS, and I’m exploring the possibility of persisting content to local files instead of a database. Here’s the context:
My frontend uses Static Site Generation (SSG), meaning no server hosting is expected after the site is built.
To update content, I’d clone the repository, start the CMS locally to make changes, then rebuild the site and deploy the updated static files.
Persisting content in files would allow me to:
Use git diff for PR reviews.
Reproduce datasets easily across environments via git cloning.
While I’m considering building a custom dbAdapter to achieve this, I wanted to ask:
Has anyone already created a plugin or adapter for PayloadCMS to store content as local files (e.g., JSON, Markdown, etc.)?
I looked into using SQLite as a local file-based option, but it’s hard to review diffs during PRs, which makes it less ideal for my workflow.
Would love to hear if there are existing solutions or any pointers before I dive into custom code. Thanks for your help! 😊