This commit is contained in:
tornado
2025-02-18 11:31:29 +08:00
parent b61af75169
commit 9ff78b25ce
10 changed files with 6892 additions and 52 deletions

View File

@@ -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
}
}
},
},
};