Skip to content

Commit

Permalink
fix: Replace remaining app.posthog.com with us. (#20363)
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes authored Feb 27, 2024
1 parent d31fb19 commit adceadf
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.cloud
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion frontend/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/components/HedgehogBuddy/sprites/sprites.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}

Expand Down
2 changes: 1 addition & 1 deletion posthog/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, feature: Optional[str] = None) -> None:
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 [email protected] to discuss options."
)
Expand Down

0 comments on commit adceadf

Please sign in to comment.