From 743eeefdbb99c4cc40d1ef0cfc5e8324706c37f3 Mon Sep 17 00:00:00 2001 From: Samuel Andert Date: Tue, 22 Aug 2023 09:52:12 +0200 Subject: [PATCH] tiny cleanup --- .meshrc.yml | 6 +++--- {schema => schemas}/cloudron.json | 0 {schema => schemas}/directus.graphql | 0 {schema => schemas}/gitea.yml | 0 {schema => schemas}/gridproxy.json | 0 src/envelopePlugin.ts | 4 ---- 6 files changed, 3 insertions(+), 7 deletions(-) rename {schema => schemas}/cloudron.json (100%) rename {schema => schemas}/directus.graphql (100%) rename {schema => schemas}/gitea.yml (100%) rename {schema => schemas}/gridproxy.json (100%) 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 }