ci: use NODE_ENV in pipeline

This commit is contained in:
Lars Hampe 2024-09-28 21:53:16 +02:00
parent d19bc2cbef
commit 1276ca6938
2 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,8 @@ jobs:
- name: Build - name: Build
run: bun run build run: bun run build
env:
NODE_ENV: production
- name: Set docker chmod (temp solution) - name: Set docker chmod (temp solution)
run: sudo chmod 666 /var/run/docker.sock run: sudo chmod 666 /var/run/docker.sock

View File

@ -38,7 +38,10 @@ export default defineConfig({
{ {
base: 'api', base: 'api',
label: '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',
}, },
]), ]),
], ],