: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
feat(deployments): add cloudflare pages settings and temporal queue (#58550)
Richard Solomoufc353d6469b5
diff --git a/posthog/settings/temporal.py b/posthog/settings/temporal.pyindex 0cd678f8c5f5..0b4dc2b108db 100644--- a/posthog/settings/temporal.py+++ b/posthog/settings/temporal.py@@ -106,4 +106,5 @@ LLMA_SENTIMENT_TASK_QUEUE = _set_temporal_task_queue("llm-analytics-sentiment-taLLMA_TASK_QUEUE = _set_temporal_task_queue("llm-analytics-task-queue")EVENT_SCREENSHOTS_TASK_QUEUE = _set_temporal_task_queue("event-screenshots-task-queue")LOGS_ALERTING_TASK_QUEUE = _set_temporal_task_queue("logs-alerting-task-queue")+DEPLOYMENTS_TASK_QUEUE = _set_temporal_task_queue("deployments-task-queue")RASTERIZATION_TASK_QUEUE = "rasterization-task-queue" # Not collapsed in dev — separate Node.js worker processdiff --git a/posthog/settings/web.py b/posthog/settings/web.pyindex 19b74caa235d..24f00af64e6c 100644--- a/posthog/settings/web.py+++ b/posthog/settings/web.py@@ -591,6 +591,14 @@ CLOUDFLARE_ZONE_ID = get_from_env("CLOUDFLARE_ZONE_ID", "")CLOUDFLARE_WORKER_NAME = get_from_env("CLOUDFLARE_WORKER_NAME", "")CLOUDFLARE_PROXY_BASE_CNAME = get_from_env("CLOUDFLARE_PROXY_BASE_CNAME", "")+# Single-tenant Cloudflare Pages settings for the Deployments product.+# Separate from the SaaS proxy block above: different account scope (Pages,+# not Workers + DNS for posthog.com) and a different zone (hog.dev).+DEPLOYMENTS_CLOUDFLARE_ACCOUNT_ID = get_from_env("DEPLOYMENTS_CLOUDFLARE_ACCOUNT_ID", "")+DEPLOYMENTS_CLOUDFLARE_API_TOKEN = get_from_env("DEPLOYMENTS_CLOUDFLARE_API_TOKEN", "")+DEPLOYMENTS_HOG_DEV_ZONE_ID = get_from_env("DEPLOYMENTS_HOG_DEV_ZONE_ID", "")+DEPLOYMENTS_CLOUDFLARE_PROJECT_PREFIX = get_from_env("DEPLOYMENTS_CLOUDFLARE_PROJECT_PREFIX", "hogdev-")+# Domain Connect (automated DNS configuration)DOMAIN_CONNECT_PRIVATE_KEY: str | None = os.getenv("DOMAIN_CONNECT_PRIVATE_KEY", "").replace("\\n", "\n") or NoneDOMAIN_CONNECT_KEY_ID: str = os.getenv("DOMAIN_CONNECT_KEY_ID", "_dcpubkeyv1")