dulnan / nuxt-graphql-middleware

GraphQL in the backend, fetch in the frontend. With TypeScript support.
https://nuxt-graphql-middleware.dulnan.net
MIT License
57 stars 11 forks source link

Module Server Options #9

Closed dulnan closed 1 year ago

dulnan commented 1 year ago

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.