0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 13:39:22 +01:00

fix: Replace remaining app.posthog.com with us. (#20363)

This commit is contained in:
Michael Matloka 2024-02-27 15:22:33 +01:00 committed by GitHub
parent d31fb198e7
commit adceadf3ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 8 additions and 8 deletions

View File

@ -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]

View File

@ -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}

View File

@ -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)

View File

@ -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',
},

View File

@ -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

View File

@ -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',
}

View File

@ -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."
)