fix(ci): fall back to production CMS URL on push builds
Deploy to Firebase Hosting / deploy (push) Successful in 3m50s

Inputs are only set for workflow_dispatch — on push the env vars were
empty, causing generate-api-types to try localhost:3000 and fail with
ECONNREFUSED. Add || defaults so push builds hit cms.pm86.de.
This commit is contained in:
Peter Meier
2026-04-14 14:49:17 +02:00
parent 0814533520
commit 4bfdf540fa
+2 -2
View File
@@ -47,8 +47,8 @@ jobs:
- name: Build
env:
PUBLIC_CMS_URL: ${{ inputs.public_cms_url }}
PUBLIC_SITE_URL: ${{ inputs.public_site_url }}
PUBLIC_CMS_URL: ${{ inputs.public_cms_url || 'https://cms.pm86.de' }}
PUBLIC_SITE_URL: ${{ inputs.public_site_url || 'https://windwiderstand.de' }}
PUBLIC_FORMBRICKS_APP_URL: ${{ inputs.public_formbricks_app_url || 'https://forms.pm86.de' }}
PUBLIC_FORMBRICKS_ENVIRONMENT_ID: ${{ inputs.public_formbricks_environment_id || 'cmnlgrjle0008mr01k018oaiz' }}
run: yarn build