You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(website): fall back to US PostHog host when env is empty string
GitHub Actions expands an unset `POSTHOG_HOST` secret to "", which
passes the nullish check (`??`) and leaves api_host empty. PostHog
then falls back to the current origin and sends POST /e/ to
cubepi.pages.dev — Cloudflare Pages doesn't accept POST and returns
405, so no events reach PostHog.
Switch both the build-time embed and the client init to `||` so an
empty string also routes to https://us.i.posthog.com.
0 commit comments