[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 馃珫 Status page with uptime monitoring & API monitoring as code 馃珫 openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor

fix: make GCP actually optional and fix other env validation issues (#2537) master

* fix: allow self-hosted deployments without SaaS dependencies - Make SaaS-only env vars (Stripe, Vercel, Unkey) optional when SELF_HOST=true - Make GCP Cloud Tasks initialization conditional to prevent crashes - Add null checks before CreateTask calls in workflows - Allow empty or 'your-value' placeholder for GCP credentials This fixes two issues: 1. workflows container crash-loop without GCP credentials 2. env validation requiring SaaS vars in self-hosted mode * refactor: remove comments and make Tinybird optional for self-hosted - Remove inline comments from env validation - Make TINY_BIRD_API_KEY optional when SELF_HOST=true - Aligns with .env.docker.example documentation * docs: remove 'your-value' placeholders from GCP variables - Change GCP_PROJECT_ID, GCP_LOCATION, GCP_CLIENT_EMAIL, GCP_PRIVATE_KEY to empty values - Consistent with other optional variables in .env.docker.example - Code now properly handles empty GCP credentials without crashes * ci: apply automated fixes * fix: improve self-hosted deployment validation and GCP checks - Fix isSelfHost to use stringbool-compatible parsing (supports '1', 'yes', 'on') - Add GCP credential validation to isGcpConfigured() in monitor.ts and checker.ts - Validate GCP_CLIENT_EMAIL and GCP_PRIVATE_KEY before client initialization - Fix Redis workflow lock to only be set when Cloud Task is actually created - Prevent setting workflow locks for skipped tasks when GCP not configured * fix: resolve merge conflict and improve stringbool consistency - Remove merge conflict markers in checker.ts - Use z.stringbool() directly for isSelfHost to ensure exact consistency with SELF_HOST schema * fix: remove merge conflict markers in monitor.ts * ci: apply automated fixes * fix: add null check for client in createCronTask to satisfy TypeScript * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


+145 -48
5 changed files