Files
speckle-server/frontend/apollo.config.js
T
2020-10-01 20:27:25 +01:00

24 lines
633 B
JavaScript

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,
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' )
},
engine: {
endpoint: process.env.APOLLO_ENGINE_API_ENDPOINT,
apiKey: env.VUE_APP_APOLLO_ENGINE_KEY
}
}