Closed
Description
Bug Description
Bug description
Live Acitivty page is not working on self-hosted instance.
Frontend tries to fetch http://localhost:8666/events
and http://localhost:8666/stats
.
How to reproduce
- Navigate to self-hosted live activity page
- Page shows "Waiting for events…"
Additional context
Maybe the problem is caused by this code?
https://github.com/PostHog/posthog/blob/d844b47438495358deddbac9cf13006e3fd72f0b/frontend/src/lib/utils/apiHost.ts#L11C17-L11C37
Debug info
- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables or https://eu.posthog.com/settings/project-details#variables]
- [ x ] PostHog Hobby self-hosted with `docker compose`, version/commit: d844b47438495358deddbac9cf13006e3fd72f0b
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]