Update content of markdown file with next.js with git backend

I have a set up of tina cms with nextjs and looking for to implement some update method which can change .md file content to sync tina form and the .md file. What is your offer about it? I cant find any resource how to work with .md file. Maybe I need to register a method in git backend which will have access to file system and will be able to change file in data directory

Hi, did you take a look a our Next.js guide?

TinaCMS works fine with Markdown (and JSON).

yes I did, but it’s about how to display changes on screen as you change the content in edit form, I need solution to update the .md file after submit. just one idea that I have is to delete prev file with deleteFromDisk() method and create new one according to the new content