[backport core/1.41] fix: update PostHog api_host fallback domain (#9733) (#10099)

Backport of #9733 to core/1.41

Co-authored-by: Robin Huang <robin.j.huang@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Byrne
2026-03-16 06:21:53 -07:00
committed by GitHub
parent 9e00c58890
commit bb750f45f9
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ describe('PostHogTelemetryProvider', () => {
await vi.dynamicImportSettled()
expect(hoisted.mockInit).toHaveBeenCalledWith('phc_test_token', {
api_host: 'https://ph.comfy.org',
api_host: 'https://t.comfy.org',
autocapture: false,
capture_pageview: false,
capture_pageleave: false,

View File

@@ -100,7 +100,7 @@ export class PostHogTelemetryProvider implements TelemetryProvider {
this.posthog = posthogModule.default
this.posthog!.init(apiKey, {
api_host:
window.__CONFIG__?.posthog_api_host || 'https://ph.comfy.org',
window.__CONFIG__?.posthog_api_host || 'https://t.comfy.org',
autocapture: false,
capture_pageview: false,
capture_pageleave: false,