Refactored how certain options are passed to the module. Using nuxt.config.ts for functions only worked in some cases and required that nuxt.config.ts is available in runtime.
New file exists in ~/app/graphqlMiddleware.serverOptions.ts where such configuration can be passed. This file is imported in the build and included in the server bundle.
Refactored how certain options are passed to the module. Using nuxt.config.ts for functions only worked in some cases and required that nuxt.config.ts is available in runtime.
New file exists in ~/app/graphqlMiddleware.serverOptions.ts where such configuration can be passed. This file is imported in the build and included in the server bundle.