Skip to content

Runtime Config

The following runtime config are provided by the module:

GraphQL Endpoint

Allows you to set or override the graphqlEndpoint option.

You can set the GraphQL endpoint to use by setting the NUXT_GRAPHQL_MIDDLEWARE_GRAPHQL_ENDPOINT environment variable:

bash
NUXT_GRAPHQL_MIDDLEWARE_GRAPHQL_ENDPOINT=http://example.com/graphql

This is used to download the schema in dev mode. A graphqlEndpoint method provided by your server options will take precedence when making GraphQL queries. If no method exists, then the value of the environment variable is also used at runtime (e.g. running the Nuxt build).

Released under the MIT License.