Skip to content

Conversation

@MattBro
Copy link

@MattBro MattBro commented Jan 7, 2026

Summary

Updates the PostHog Flags SDK example to support the Vercel Marketplace integration for PostHog.

Changes:

  • Added products parameter to deploy button URL to include PostHog marketplace integration in the deployment flow
  • Created custom PostHog adapter with fallback logic to support both:
    • Marketplace env vars: POSTHOG_PROJECT_API_KEY, POSTHOG_HOST
    • Manual setup env vars: NEXT_PUBLIC_POSTHOG_KEY, NEXT_PUBLIC_POSTHOG_HOST
  • Updated README with clearer deployment instructions explaining what the deploy button does
  • Updated .env.example to document both configuration options

Test plan

  • Test deploy button URL triggers PostHog marketplace integration flow
  • Verify app works with marketplace-provided env vars
  • Verify app still works with manually configured env vars (backwards compatible)

🤖 Generated with Claude Code

- Add products param to deploy button for automatic PostHog integration setup
- Create custom adapter with fallback for both marketplace (POSTHOG_PROJECT_API_KEY) and manual (NEXT_PUBLIC_POSTHOG_KEY) env vars
- Update README with clearer deployment instructions
- Update .env.example to document both configuration options
@vercel
Copy link
Contributor

vercel bot commented Jan 7, 2026

@MattBro is attempting to deploy a commit to the Vercel Examples Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@mtoth-vercel mtoth-vercel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@vercel
Copy link
Contributor

vercel bot commented Jan 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
flags-sdk-posthog Ready Ready Preview, Comment Jan 10, 2026 7:53am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants