:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore: switch PostHog's own dogfood proxy to internal-cf.posthog.com (#105596)
Daniel55c6c1b3f6d9
diff --git a/frontend/src/toolbar/toolbarPosthogJS.ts b/frontend/src/toolbar/toolbarPosthogJS.tsindex 7a10ec8de83f..98a813e221a5 100644--- a/frontend/src/toolbar/toolbarPosthogJS.ts+++ b/frontend/src/toolbar/toolbarPosthogJS.ts@@ -7,7 +7,7 @@ const DEFAULT_API_KEY = 'sTMFPsFhdP1Ssg'const runningOnPosthog = !!window.POSTHOG_APP_CONTEXTconst apiKey = runningOnPosthog ? window.JS_POSTHOG_API_KEY : DEFAULT_API_KEY-const apiHost = runningOnPosthog ? window.JS_POSTHOG_HOST : 'https://internal-j.posthog.com'+const apiHost = runningOnPosthog ? window.JS_POSTHOG_HOST : 'https://internal-cf.posthog.com'const initResult = posthog.init(apiKey || DEFAULT_API_KEY,diff --git a/posthog/constants.py b/posthog/constants.pyindex 152b873d2e54..8525129d4b28 100644--- a/posthog/constants.py+++ b/posthog/constants.py@@ -419,5 +419,5 @@ AUTH_BACKEND_KEYS = {backend: m["key"] for m in LOGIN_METHODS for backend in m["# PostHog's own posthog-js instance on PostHog Cloud. The app's CSP names these by exact path.-POSTHOG_JS_CLOUD_HOST = "https://internal-j.posthog.com"+POSTHOG_JS_CLOUD_HOST = "https://internal-cf.posthog.com"POSTHOG_JS_CLOUD_TOKEN = "sTMFPsFhdP1Ssg"diff --git a/posthog/test/test_middleware.py b/posthog/test/test_middleware.pyindex ad3789014374..8a5129f1b27c 100644--- a/posthog/test/test_middleware.py+++ b/posthog/test/test_middleware.py@@ -2436,7 +2436,7 @@ class TestCSPMiddleware(APIBaseTest):region, other_region = regionsshadow = shadows[0]assert "*.posthog.com" not in shadow- assert "https://internal-j.posthog.com/array/sTMFPsFhdP1Ssg/config.js" in shadow+ assert "https://internal-cf.posthog.com/array/sTMFPsFhdP1Ssg/config.js" in shadowassert "&v=3&" in shadowconnect_src = next(part for part in shadow.split("; ") if part.startswith("connect-src ")).split()assert f"https://live.{region}.posthog.com" in connect_srcdiff --git a/posthog/utils.py b/posthog/utils.pyindex 4516c3ee4fae..68ea60f76142 100644--- a/posthog/utils.py+++ b/posthog/utils.py@@ -539,7 +539,7 @@ def _build_template_context(if settings.E2E_TESTING:context["e2e_testing"] = Truecontext["js_posthog_api_key"] = "phc_ex7Mnvi4DqeB6xSQoXU1UVPzAmUIpiciRKQQXGGTYQO"- context["js_posthog_host"] = "https://internal-j.posthog.com"+ context["js_posthog_host"] = "https://internal-cf.posthog.com"context["js_posthog_ui_host"] = "https://us.posthog.com"elif settings.SELF_CAPTURE: