-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapollo.config.js
More file actions
34 lines (32 loc) · 1 KB
/
apollo.config.js
File metadata and controls
34 lines (32 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const path = require('path')
// Load .env files
const { loadEnv } = require('vue-cli-plugin-apollo/utils/load-env')
const env = loadEnv([
path.resolve(__dirname, '.env'),
path.resolve(__dirname, '.env.local'),
])
module.exports = {
client: {
// service: env.VUE_APP_APOLLO_ENGINE_SERVICE,
service: {
name: env.VUE_APP_APOLLO_ENGINE_SERVICE || 'mweclinet',
// url: 'http://localhost:4000/graphql',
// localSchemaFile: 'mweserver.json',
},
includes: ['src/**/*.{js,jsx,ts,tsx,vue,gql}'],
},
// service: {
// name: env.VUE_APP_APOLLO_ENGINE_SERVICE,
// // localSchemaFile: path.resolve(__dirname, './node_modules/.temp/graphql/schema.json'),
// url: 'http://localhost:3000/graphql',
// },
service: {
name: 'mweclinet',
// localSchemaFile: path.resolve(__dirname, './mweserver.json'),
url: 'http://localhost:3000/graphql',
},
// engine: {
// endpoint: process.env.APOLLO_ENGINE_API_ENDPOINT,
// apiKey: env.VUE_APP_APOLLO_ENGINE_KEY,
// },
}