posthog-multi-env-setup
Installation
SKILL.md
PostHog Multi-Environment Setup
Overview
Configure PostHog across development, staging, and production environments.
Prerequisites
- Separate PostHog accounts or API keys per environment
- Secret management solution (Vault, AWS Secrets Manager, etc.)
- CI/CD pipeline with environment variables
- Environment detection in application
Environment Strategy
| Environment | Purpose | API Keys | Data |
|---|---|---|---|
| Development | Local dev | Test keys | Sandbox |
| Staging | Pre-prod validation | Staging keys | Test data |
| Production | Live traffic | Production keys | Real data |
Related skills