adding production var ingestions

This commit is contained in:
Samuel Andert 2023-08-22 10:44:36 +02:00
parent 17921cf221
commit 700ecfd501
2 changed files with 17 additions and 15 deletions

View File

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

View File

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