Skip to content

fix(ci): add production kit email config#1870

Merged
tyler-dane merged 3 commits into
mainfrom
codex/add-posthog-prod-config
Jun 14, 2026
Merged

fix(ci): add production kit email config#1870
tyler-dane merged 3 commits into
mainfrom
codex/add-posthog-prod-config

Conversation

@tyler-dane

Copy link
Copy Markdown
Contributor

Summary

  • add production-only Kit email config to deploy-generated compass.yaml
  • fail production deploys early when KIT_API_SECRET or KIT_USER_TAG_ID is missing
  • add focused workflow regression coverage for the production-only Kit wiring

Why

Production signups were skipping EmailService.tagNewUserIfEnabled() because deployed compass.yaml did not include the existing email.kitApiSecret and email.kitUserTagId config values.

Validation

  • bun test self-host/docker-compose.test.ts passes: 20 pass, 0 fail
  • direct Biome check on changed files passes
  • bun lint still fails on existing unrelated repo issues: Biome schema version mismatch, import order in packages/web/src/__tests__/patched-jest.d.ts, and two redundant boolean casts

Deploy note

Before production deploy, set these on the GitHub production environment:

  • secret: KIT_API_SECRET
  • variable: KIT_USER_TAG_ID

@tyler-dane tyler-dane force-pushed the codex/add-posthog-prod-config branch 3 times, most recently from d56141c to bbee00d Compare June 14, 2026 00:42
@tyler-dane tyler-dane force-pushed the codex/add-posthog-prod-config branch from bbee00d to a5ab9fd Compare June 14, 2026 00:45
…d-config

# Conflicts:
#	.github/workflows/_deploy-environment.yml
@tyler-dane tyler-dane marked this pull request as ready for review June 14, 2026 01:05
@tyler-dane tyler-dane merged commit 7ca3d49 into main Jun 14, 2026
9 checks passed
@tyler-dane tyler-dane deleted the codex/add-posthog-prod-config branch June 14, 2026 01:05
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.

1 participant