OSDN Git Service

ある程度完成
[ngware/todo_client.git] / apollo.config.js
1 const path = require('path')
2
3 // Load .env files
4 const { loadEnv } = require('vue-cli-plugin-apollo/utils/load-env')
5 const env = loadEnv([
6   path.resolve(__dirname, '.env'),
7   path.resolve(__dirname, '.env.local')
8 ])
9
10 module.exports = {
11   client: {
12     service: env.VUE_APP_APOLLO_ENGINE_SERVICE,
13     url: 'http://localhost:8080/v1/graphql',
14     includes: ['src/**/*.{js,jsx,ts,tsx,vue,gql}']
15   },
16   service: {
17     name: env.VUE_APP_APOLLO_ENGINE_SERVICE,
18     localSchemaFile: path.resolve(__dirname, './node_modules/.temp/graphql/schema.json')
19   },
20   engine: {
21     endpoint: process.env.APOLLO_ENGINE_API_ENDPOINT,
22     apiKey: env.VUE_APP_APOLLO_ENGINE_KEY
23   }
24 }