posthog-deploy-integration
Installation
SKILL.md
PostHog Deploy Integration
Overview
Deploy PostHog analytics to production platforms. Covers Next.js with Vercel (reverse proxy, server-side capture, edge functions), self-hosted PostHog with Docker, and Google Cloud Run deployment patterns.
Prerequisites
- PostHog project API key (
phc_...) - PostHog personal API key (
phx_...) for server features - Platform CLI installed (
vercel,docker, orgcloud)
Instructions
Step 1: Next.js + Vercel Deployment
set -euo pipefail
# Set environment variables in Vercel
Related skills