The NextJs tutorial sets up a blog that uses pre-rendering via static generation to read data dependencies (blog posts, in this case) from markdown files, sending this data as props to the page. Very neat!
I went to build upon this by adding the ability to edit the markdown on the page. After implementing said editability I aimed to persist the changes, but I reached a blocking error message saying 'fs' can't be resolved. It then hit me that I am trying to execute some server-side code (saving markdown to files) from the client.
What options do I have to save markdown from the client?