From adceadf3ee366504656216d6a5ce9a115bd6460e Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Tue, 27 Feb 2024 15:22:33 +0100 Subject: [PATCH] fix: Replace remaining app.posthog.com with us. (#20363) --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- Dockerfile.cloud | 2 +- README.md | 2 +- frontend/build.mjs | 2 +- frontend/src/lib/components/HedgehogBuddy/sprites/sprites.tsx | 4 ++-- frontend/src/lib/constants.tsx | 2 +- posthog/exceptions.py | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 606ff582645..305d2212bb0 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -19,7 +19,7 @@ labels: bug ## Environment -- [ ] PostHog Cloud US, project ID: [please provide from https://app.posthog.com/settings/project-details#variables] +- [ ] PostHog Cloud US, project ID: [please provide from https://us.posthog.com/settings/project-details#variables] - [ ] PostHog Cloud EU, project ID: [please provide from https://eu.posthog.com/settings/project-details#variables] - [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide] - [ ] PostHog self-hosted with Kubernetes (deprecated, see ["Sunsetting Kubernetes support"](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide] diff --git a/Dockerfile.cloud b/Dockerfile.cloud index 61f2477301d..a147a6e86db 100644 --- a/Dockerfile.cloud +++ b/Dockerfile.cloud @@ -1,5 +1,5 @@ # -# Extend the non-Cloud image with anything required for PostHog Cloud (app.posthog.com) +# Extend the non-Cloud image with anything required for PostHog Cloud # ARG BASE_IMAGE FROM ${BASE_IMAGE} diff --git a/README.md b/README.md index 7e2f8d5ac44..b25aa911131 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ We're constantly adding new features, with web analytics and data warehouse now ### PostHog Cloud (Recommended) -The fastest and most reliable way to get started with PostHog is signing up for free to [PostHog Cloud](https://app.posthog.com/signup) or [PostHog Cloud EU](https://eu.posthog.com/signup). Your first 1 million events (and 15k replays) are free every month, after which you pay based on usage. +The fastest and most reliable way to get started with PostHog is signing up for free to [PostHog Cloud](https://us.posthog.com/signup) or [PostHog Cloud EU](https://eu.posthog.com/signup). Your first 1 million events (and 15k replays) are free every month, after which you pay based on usage. ### Open-source hobby deploy (Advanced) diff --git a/frontend/build.mjs b/frontend/build.mjs index febe4843ba7..93a6b03cb48 100755 --- a/frontend/build.mjs +++ b/frontend/build.mjs @@ -53,7 +53,7 @@ await buildInParallel( footer: { js: 'return posthogToolbar })();' }, // This isn't great, but we load some static assets at runtime for the toolbar, and we can't sub in // a variable at runtime it seems... - publicPath: isDev ? '/static/' : 'https://app.posthog.com/static/', + publicPath: isDev ? '/static/' : 'https://us.posthog.com/static/', alias: { 'posthog-js': 'posthog-js-lite', }, diff --git a/frontend/src/lib/components/HedgehogBuddy/sprites/sprites.tsx b/frontend/src/lib/components/HedgehogBuddy/sprites/sprites.tsx index c6591f225f1..347f26c63db 100644 --- a/frontend/src/lib/components/HedgehogBuddy/sprites/sprites.tsx +++ b/frontend/src/lib/components/HedgehogBuddy/sprites/sprites.tsx @@ -25,12 +25,12 @@ export type AccessoryInfo = { } // If loaded via the toolbar the root domain won't be app.posthog.com and so the assets won't load -// Simple workaround is we detect if the domain is localhost and if not we just use https://app.posthog.com +// Simple workaround is we detect if the domain is localhost and if not we just use https://us.posthog.com export const baseSpritePath = (): string => { let path = `/static/hedgehog/sprites` if (window.location.hostname !== 'localhost') { - path = `https://app.posthog.com${path}` + path = `https://us.posthog.com${path}` } return path diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx index a0a0f301116..c3d049415e7 100644 --- a/frontend/src/lib/constants.tsx +++ b/frontend/src/lib/constants.tsx @@ -240,7 +240,7 @@ export const DOMAIN_REGEX = /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/ export const SECURE_URL_REGEX = /^(?:http(s)?:\/\/)[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/gi export const CLOUD_HOSTNAMES = { - [Region.US]: 'app.posthog.com', + [Region.US]: 'us.posthog.com', [Region.EU]: 'eu.posthog.com', } diff --git a/posthog/exceptions.py b/posthog/exceptions.py index a1582f6a430..40e4ce1f6b9 100644 --- a/posthog/exceptions.py +++ b/posthog/exceptions.py @@ -25,7 +25,7 @@ class EnterpriseFeatureException(APIException): detail=( f"{feature.capitalize() if feature else 'This feature'} is part of the premium PostHog offering. " + ( - "To use it, subscribe to PostHog Cloud with a generous free tier: https://app.posthog.com/organization/billing" + "To use it, subscribe to PostHog Cloud with a generous free tier." if is_cloud() else "Self-hosted licenses are no longer available for purchase. Please contact sales@posthog.com to discuss options." )