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 endpoint: /api
additionalEnvelopPlugins: "./src/envelopePlugin.ts" additionalEnvelopPlugins: "./src/envelopePlugin.ts"
sources: sources:
- name: Gitea
handler:
openapi:
endpoint: https://git.andert.me/api/v1
source: schemas/gitea.yml
operationHeaders:
Authorization: Bearer {env.GITEA_API}
- name: Directus - name: Directus
handler: handler:
graphql: graphql:
@ -16,10 +9,17 @@ sources:
source: schemas/directus.graphql source: schemas/directus.graphql
operationHeaders: operationHeaders:
Authorization: Bearer {env.DIRECTUS_API} Authorization: Bearer {env.DIRECTUS_API}
- name: Cloudron # - name: Cloudron
handler: # handler:
openapi: # openapi:
endpoint: https://my.andert.me/api/v1 # endpoint: https://my.andert.me/api/v1
source: schemas/cloudron.json # source: schemas/cloudron.json
operationHeaders: # operationHeaders:
Authorization: Bearer {env.CLOUDRON_API} # 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", "next:dev": "dotenv -e .env.local -- next dev",
"dev": "npm run mesh:dev && npm run next:dev", "dev": "npm run mesh:dev && npm run next:dev",
"schema": "dotenv -- node ./src/fetch-schema.js", "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", "start": "next start",
"lint": "next lint" "lint": "next lint"
}, },