Commit ca78643
UN-2236 [FEAT] Add build-time PostHog control for on-prem deployments (#1615)
Added build argument to control PostHog analytics at build time,
enabling cloud deployments while disabling for on-prem installations.
Changes:
- Added REACT_APP_ENABLE_POSTHOG build argument to frontend Dockerfile
- Defaults to true to maintain cloud behavior
- Updated sample.env with PostHog configuration documentation
- Default set to false for local development (privacy-first)
This provides clean separation between cloud (analytics enabled)
and on-prem (analytics disabled) builds without runtime complexity.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 14cbd6b commit ca78643
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
0 commit comments