vue-cli-plugin-apollo
Version:
vue-cli 3 plugin to add Apollo and GraphQL
46 lines (23 loc) • 1.04 kB
Markdown
# Env variables
- **`VUE_APP_GRAPHQL_HTTP`**
The url to the graphql HTTP endpoint, default: `http://localhost:4000`
- **`VUE_APP_GRAPHQL_WS`**
The url to the graphql Websockets endpoint for subscriptions, default: `ws://localhost:4000`
## With the GraphQL server enabled
- **`VUE_APP_GRAPHQL_HOST`**
Hostname of GraphQL API Server, default: `localhost`
- **`VUE_APP_GRAPHQL_PATH`**
Path on which to serve graphQL, defaultL `/graphql`
- **`VUE_APP_GRAPHQL_PORT`**
Port of the GraphQL API Server, default: `4000`
- **`VUE_APP_APOLLO_ENGINE_KEY`**
API key for [Apollo Engine](https://engine.apollographql.com)
- **`VUE_APP_APOLLO_ENGINE_TAG`**
Queries made to the API will be marked with this Schema Tag. Useful for segmenting queries (for example 'test', 'staging', 'prod').
- **`VUE_APP_GRAPHQL_SUBSCRIPTIONS_PATH`**
Subscriptions path, default: `/graphql`
## Advanced
- **`APOLLO_ENGINE_API_ENDPOINT`**
Endpoint to use to the Engine requests.
- **`APOLLO_ENGINE_FRONTEND`**
URL to the Engine website.