Shipkit
DocsFeaturesPricing
DocsFeaturesPricing

Shipkit DocumentationBuild memory optimizationDevelopment GuideEnvironment VariablesError HandlingFile StructureMiddlewareRebranding Guide

Vercel Deployment Checks

Development GuideCLIDependency UpdatesDevToolsFeature FlagsAI PromptsSetup RequirementsSupply chaintRPCWeb Workers

FeaturesAIAnalytics IntegrationAuthenticationCMSDatabaseEmailHapticsPaymentsComponent RegistryStorageUIVisual BuilderWaitlist Feature

Quick StartDeploymentEnvironment VariablesFile StructureSetup Wizard

Caching & Rate LimitingContent ManagementError HandlingMarkdown and MDXMiddlewareProxy-Safe Server ActionsRebranding GuideWebhook Security Implementation GuideMulti-Zone ArchitectureVercel Deployment

IntegrationsPayload CMSDataFast Analytics IntegrationGoogle Analytics IntegrationGoogle Tag Manager IntegrationPostHogStatSig IntegrationUmami Analytics IntegrationAuth.js IntegrationBetter AuthClerkStack Auth IntegrationSupabase Authentication IntegrationBuilder.io IntegrationPayload CMS IntegrationAWS S3 IntegrationResend Email IntegrationUpstash Redis IntegrationVercel Blob IntegrationLemon SqueezyPolarStripe

API RoutesComponentsAPI Route SnippetsAuthentication SnippetsComponent SnippetsForm Handling SnippetsSnippets Introduction

    PostHog

    Open-source product analytics with event tracking, session recording, feature flags, and A/B testing.

    POSTHOG_KEY=phc_...
    POSTHOG_HOST=https://us.i.posthog.com  # or https://eu.i.posthog.com for EU
    

    Note:

    • You can set POSTHOG_KEY without the NEXT_PUBLIC_ prefix and Shipkit will automatically generate NEXT_PUBLIC_POSTHOG_KEY at build time for use on the client.
    • The non-prefixed variable is not accessible on the client; only the generated NEXT_PUBLIC_* value is exposed.
    • For self-hosted PostHog, set POSTHOG_HOST to your instance URL.

    Get your project API key from PostHog Dashboard → Project Settings.