Use Git to manage posts / files, as the current system
cannot revert deleted files,
does not save editing history,
and auth works by having an environment variable with admin emails (which is dumb).
Using Git would provide a complete editing history, with ability to reverse changes;
and with a remote GitHub repo, auth can also be done easily with repo permissions (specifically, write access to the repo).
Use Git to manage posts / files, as the current system
Using Git would provide a complete editing history, with ability to reverse changes; and with a remote GitHub repo, auth can also be done easily with repo permissions (specifically, write access to the repo).
References: https://keystatic.com/ - CMS using this approach https://docs.github.com/en/rest/collaborators/collaborators?apiVersion=2022-11-28#get-repository-permissions-for-a-user