In a built Nuxt 3 application, there is no runtime Nuxt dependency. That means your site will be highly performant, and ultra-slim. But it also means you can no longer hook into runtime Nuxt server hooks.
render key in your nuxt.config.~/server/api and ~/server/middleware will be automatically registered; you can remove them from your serverMiddleware array.serverMiddleware array to point to files or npm packages directly, rather than using inline functions.