Custom Git Provider
Implement a Git Provider is easy. It is a class or object that implements the GitProvider interface.
GitProvider Interface
onPut
This is used to save content to Git. It is called whenever a value is saved in the CMS.
onDelete
This is used to delete content from Git. It is called whenever a value is deleted in the CMS.
Example
Here is the source code for the GitHub Git Provider. It is a good example of how to implement the GitProvider interface.
Adding your Git Provider
This can now be used as a prop to the createDatabase function.
database.ts,js: