Add a visual page editor to a Next.js application
How do you add a visual page editor to a Next.js app?
Install the pagiera package, point it at PostgreSQL and Redis, mount its catch-all API route under /api/pagiera, load the editor bootstrap on the server, and render the studio behind your own authentication. The editor runs inside your application rather than on a separate hosted account, so the pages it produces are rendered by your own Next.js server.