Skip to content

feat: fix build + posthog integration#476

Merged
k11kirky merged 1 commit intomainfrom
01-12-feat_fix_build_posthog_integration
Jan 12, 2026
Merged

feat: fix build + posthog integration#476
k11kirky merged 1 commit intomainfrom
01-12-feat_fix_build_posthog_integration

Conversation

@k11kirky
Copy link
Contributor

@k11kirky k11kirky commented Jan 12, 2026

TL;DR

Added PostHog environment variables to the Array release workflow and build configuration.

What changed?

  • Added PostHog API key and host environment variables to the GitHub workflow for Array releases
  • Modified the Vite main config to load environment variables and inject PostHog configuration at build time
  • Updated the CLI package.json build script to use cli.ts instead of index.ts as the entry point

How to test?

  1. Verify that PostHog analytics work correctly in production builds
  2. Ensure the CLI builds successfully with the new entry point
  3. Check that the GitHub workflow can access the PostHog environment variables during the release process

Why make this change?

This change ensures that PostHog analytics configuration is properly included in production builds, allowing for tracking usage metrics in the released application. The environment variables are now properly passed through the build process, making analytics available in the packaged application where process.env would not normally be accessible.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@k11kirky k11kirky marked this pull request as ready for review January 12, 2026 19:36
@k11kirky k11kirky requested a review from a team as a code owner January 12, 2026 19:36
@k11kirky k11kirky merged commit 97fc797 into main Jan 12, 2026
12 checks passed
@k11kirky k11kirky deleted the 01-12-feat_fix_build_posthog_integration branch January 12, 2026 19:39
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.

2 participants