diff --git a/.meshrc.yml b/.meshrc.yml index 3961003..bafd361 100644 --- a/.meshrc.yml +++ b/.meshrc.yml @@ -6,20 +6,20 @@ sources: handler: openapi: endpoint: https://git.andert.me/api/v1 - source: schema/gitea.yml + source: schemas/gitea.yml operationHeaders: Authorization: Bearer {env.GITEA_API} - name: Directus handler: graphql: endpoint: https://directus.andert.me/graphql - source: schema/directus.graphql + source: schemas/directus.graphql operationHeaders: Authorization: Bearer {env.DIRECTUS_API} # - name: Cloudron # handler: # openapi: # endpoint: https://my.andert.me/api/v1 - # source: schema/cloudron.json + # source: schemas/cloudron.json # operationHeaders: # Authorization: Bearer {env.CLOUDRON_API} diff --git a/schema/cloudron.json b/schemas/cloudron.json similarity index 100% rename from schema/cloudron.json rename to schemas/cloudron.json diff --git a/schema/directus.graphql b/schemas/directus.graphql similarity index 100% rename from schema/directus.graphql rename to schemas/directus.graphql diff --git a/schema/gitea.yml b/schemas/gitea.yml similarity index 100% rename from schema/gitea.yml rename to schemas/gitea.yml diff --git a/schema/gridproxy.json b/schemas/gridproxy.json similarity index 100% rename from schema/gridproxy.json rename to schemas/gridproxy.json diff --git a/src/envelopePlugin.ts b/src/envelopePlugin.ts index 4580159..65bca36 100644 --- a/src/envelopePlugin.ts +++ b/src/envelopePlugin.ts @@ -1,10 +1,6 @@ import { useGenericAuth } from '@envelop/generic-auth' import { MeshPlugin } from '@graphql-mesh/types' -const path = require('path'); -require('dotenv').config({ path: path.resolve(__dirname, '../.env.local') }); - - type UserType = { id: string }