fix(ci): add CRON_SECRET placeholder for production build

Next.js builds run in NODE_ENV=production which triggers env
validation requiring CRON_SECRET (added by security hardening).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Martin Porwoll 2026-02-17 12:09:20 +00:00
parent 4e3710655e
commit a21f916300

View file

@ -212,13 +212,14 @@ jobs:
- name: Build application - name: Build application
run: pnpm build run: pnpm build
env: env:
# Minimal env vars for build # Minimal env vars for build (Next.js runs in NODE_ENV=production)
PAYLOAD_SECRET: build-secret-placeholder PAYLOAD_SECRET: build-secret-placeholder
DATABASE_URI: postgresql://placeholder:placeholder@localhost:5432/placeholder DATABASE_URI: postgresql://placeholder:placeholder@localhost:5432/placeholder
NEXT_PUBLIC_SERVER_URL: https://build.example.com NEXT_PUBLIC_SERVER_URL: https://build.example.com
PAYLOAD_PUBLIC_SERVER_URL: https://build.example.com PAYLOAD_PUBLIC_SERVER_URL: https://build.example.com
CONSENT_LOGGING_API_KEY: ci-consent-api-key-placeholder CONSENT_LOGGING_API_KEY: ci-consent-api-key-placeholder
IP_ANONYMIZATION_PEPPER: ci-anonymization-pepper-placeholder IP_ANONYMIZATION_PEPPER: ci-anonymization-pepper-placeholder
CRON_SECRET: ci-cron-secret-placeholder
- name: Verify build output - name: Verify build output
run: | run: |