ci: use NODE_ENV in pipeline
This commit is contained in:
parent
d19bc2cbef
commit
1276ca6938
@ -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
|
||||
|
@ -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',
|
||||
},
|
||||
]),
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user