Hosting The TinaCMS Backend on Next.js
The TinaCMS Backend is hosted in a single endpoint that is responsible for handling all TinaCMS requests. This includes the GraphQL API, authentication, and authorization.
The handler can be created with a TinaNodeBackend function. This function takes a TinaNodeBackendOptions object as an argument.
Configuration
You need to create an endpoint that can handle post requests. In this example we will use Next.js api routes, but you can use any framework you want.
Next make sure to update your TinaCMS config to use the new endpoint.