From 700ecfd50105edb855ed986bd06a28700689f56b Mon Sep 17 00:00:00 2001 From: Samuel Andert Date: Tue, 22 Aug 2023 10:44:36 +0200 Subject: [PATCH] adding production var ingestions --- .meshrc.yml | 28 ++++++++++++++-------------- package.json | 4 +++- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.meshrc.yml b/.meshrc.yml index ea6d1b1..dd60acd 100644 --- a/.meshrc.yml +++ b/.meshrc.yml @@ -2,13 +2,6 @@ serve: endpoint: /api additionalEnvelopPlugins: "./src/envelopePlugin.ts" sources: - - name: Gitea - handler: - openapi: - endpoint: https://git.andert.me/api/v1 - source: schemas/gitea.yml - operationHeaders: - Authorization: Bearer {env.GITEA_API} - name: Directus handler: graphql: @@ -16,10 +9,17 @@ sources: source: schemas/directus.graphql operationHeaders: Authorization: Bearer {env.DIRECTUS_API} - - name: Cloudron - handler: - openapi: - endpoint: https://my.andert.me/api/v1 - source: schemas/cloudron.json - operationHeaders: - Authorization: Bearer {env.CLOUDRON_API} + # - name: Cloudron + # handler: + # openapi: + # endpoint: https://my.andert.me/api/v1 + # source: schemas/cloudron.json + # operationHeaders: + # Authorization: Bearer {env.CLOUDRON_API} + # - name: Gitea + # handler: + # openapi: + # endpoint: https://git.andert.me/api/v1 + # source: schemas/gitea.yml + # operationHeaders: + # Authorization: Bearer {env.GITEA_API} diff --git a/package.json b/package.json index c3f9286..3871c50 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "next:dev": "dotenv -e .env.local -- next dev", "dev": "npm run mesh:dev && npm run next:dev", "schema": "dotenv -- node ./src/fetch-schema.js", - "build": "mesh build && next build", + "mesh:build": "dotenv -e .env.production -- mesh build", + "next:build": "dotenv -e .env.production -- next build", + "build": "npm run mesh:build && npm run next:build", "start": "next start", "lint": "next lint" },