diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index c252888..867f18c 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -24,6 +24,8 @@ jobs: - name: Build run: bun run build + env: + NODE_ENV: production - name: Set docker chmod (temp solution) run: sudo chmod 666 /var/run/docker.sock diff --git a/apps/website/astro.config.mjs b/apps/website/astro.config.mjs index 623198f..60132a7 100644 --- a/apps/website/astro.config.mjs +++ b/apps/website/astro.config.mjs @@ -38,7 +38,10 @@ export default defineConfig({ { base: 'api', label: 'API', - schema: 'https://api.boring.tools/openapi.json', + schema: + import.meta.env.NODE_ENV !== 'production' + ? 'http://localhost:3000/openapi.json' + : 'https://api.boring.tools/openapi.json', }, ]), ],