Files
sase.tr/packages/config
Semih Yesilyurt 7bdbe3541b
Some checks failed
QA Gate (P0/P1) / Test affected app (pull_request) Has been cancelled
feat(flags): decouple analytics capture from flag evaluation (POSTHOG_CAPTURE_ENABLED)
So a non-prod env can hold the (public) project key and evaluate flags - kill
switches, rollout - WITHOUT shipping analytics events to the shared prod
PostHog project. The posthog-node client (which powers both capture and local
flag eval) now initializes whenever the project key is present; capture() is
gated on POSTHOG_CAPTURE_ENABLED (default on; set "false" on dev). Wired into
the api + worker compose blocks.

This lets dev.sase.tr exercise the kill switches end-to-end while keeping the
prod analytics project clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 01:17:00 +03:00
..