chore
This commit is contained in:
@@ -1,22 +1,15 @@
|
||||
import dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
|
||||
// .graphqlrc.ts or graphql.config.ts
|
||||
export default {
|
||||
projects: {
|
||||
directus: {
|
||||
schema: process.env.GRAPHQL_ENDPOINT_WITH_TOKEN,
|
||||
documents: ['src/**/*.{graphql,js,ts,jsx,tsx}'],
|
||||
schema: "http://172.16.6.246:8055/graphql?access_token=WkVWFMiFcrjsXRZqsL30Cd4Sboe0DRk-",
|
||||
documents: '**/*.{graphql,js,ts,jsx,tsx}',
|
||||
extensions: {
|
||||
endpoints: {
|
||||
default: {
|
||||
url: process.env.GRAPHQL_ENDPOINT,
|
||||
headers: {
|
||||
Authorization: `Bearer ${process.env.API_TOKEN}`,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
languageService: {
|
||||
cacheSchemaFileForLookup: true
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user