PostHog feature flags for Next.js This skill helps you add PostHog feature flags to Next.js applications. Reference files - - React feature flags installation - docs - - Next.js - docs - - Adding feature flag code - docs - - Feature flag best practices - docs Consult the documentation for API details and framework-specific patterns. Key principles - Environment variables : Always use environment variables for PostHog keys. Never hardcode them. - Minimal changes : Add feature flag code alongside existing logic. Don't replace or restructure existing code. - Boolean flags first : Default to bool…