I’m building a cloudflare pages plugin that will host an admin like interface. the only way to “define” an api for it is to continue adding path based handlers as part of the middleware itself?
FWIW, if you can use the latest version of node 16 (16.20.2), you can simply express NODE_VERSION: 16NODE_VERSION: 16 in your environment (or 16 in node version files) and it won't have to download anything
weird question, on a monorepo, in the packages folder where I’m developing my cf pages plugin, is it possible to make the plugin serve the dist of the nextjs compilation? Or I’m forced to construct my response on the fly?
basically trying to understand if its easy to develop that way so that users control and host their own admin interface, or if the plugin should only expose my api and on login to an external admin, communicate with the pages that have the plugin added