Repository navigation
docs: name the posthog.json host and the injected release id in the web example - #755
Conversation
…eb example Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
posthog-flutter Compliance ReportDate: 2026-12-01T21:00:25.703691+00:00 ✅ All Tests Passed!232/232 tests passed Capture_V1 Tests✅ 105/105 tests passed View Details
Capture_Ai_V1 Tests✅ 110/110 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
|
dustinbyrne
left a comment
There was a problem hiding this comment.
Thanks for picking up the #754 suggestions. The EU host and _posthogReleaseId changes match hog 1.0.0. One optional suggestion inline.
AI-assisted review.
|
|
||
| 1. Run `hog ci setup --scope error_tracking:write` once in the repository, and have an organization admin approve the request. | ||
| 2. Put the project ID that `hog ci setup` prints in `posthog.json` as `"projectId"`, or set `HOG_PROJECT_ID` (and `HOG_HOST` outside US Cloud) in the job. | ||
| 2. Put the `host` and `projectId` that `hog ci setup` prints in `posthog.json`, or set `HOG_HOST` and `HOG_PROJECT_ID` in the job. |
There was a problem hiding this comment.
Suggestion: Consider adding the self-hosted sentence from the #754 suggestion: "A self-hosted PostHog needs HOG_HOST either way."
For a self-hosted PostHog, hog ci setup leaves host out of the posthog.json snippet and instead prints that the job needs HOG_HOST (setup.ts#L49-L58, #L219-L221). So there's no posthog.json host to copy, and a job without HOG_HOST either sends the exchange to US Cloud (projectId only) or stops with workload_host_not_allowed (a self-hosted host in posthog.json, e.g. from hog auth login) (credentials.ts#L300-L313). hog's own hint uses the same wording (workload.ts#L42-L43), as does step 4 of the migration guide. Not a regression; base had the same gap on the posthog.json route.
| 2. Put the `host` and `projectId` that `hog ci setup` prints in `posthog.json`, or set `HOG_HOST` and `HOG_PROJECT_ID` in the job. | |
| 2. Put the `host` and `projectId` that `hog ci setup` prints in `posthog.json`, or set `HOG_HOST` and `HOG_PROJECT_ID` in the job. A self-hosted PostHog needs `HOG_HOST` either way. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviews
|
💡 Motivation and Context
Follow-up to #754, from review comments that came in as it merged:
projectIdforposthog.json, so hog exchanged the OIDC token with US Cloud._posthogReleaseId, which the default event mode injects next to_posthogChunkIds.Changes
hostand theprojectIdthathog ci setupprints inposthog.json, or to setHOG_HOSTandHOG_PROJECT_ID._posthogChunkIdsand_posthogReleaseId.💚 How did you test it?
📝 Checklist
🤖 Generated with Claude Code