Skip to content

Commit cecd522

Browse files
authored
Merge pull request #2962 from Agenta-AI/chore/reverse-proxy-ph
Chore/reverse-proxy-ph
2 parents c250ba3 + affa9a0 commit cecd522

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api/oss/src/utils/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class EnvironSettings(BaseModel):
5353

5454
# Optional integrations
5555
POSTHOG_API_KEY: str = os.getenv("POSTHOG_API_KEY") or ""
56-
POSTHOG_HOST: str = os.getenv("POSTHOG_HOST", "https://app.posthog.com") or ""
56+
POSTHOG_HOST: str = os.getenv("POSTHOG_HOST", "https://alef.agenta.ai") or ""
5757
GOOGLE_OAUTH_CLIENT_ID: str = os.getenv("GOOGLE_OAUTH_CLIENT_ID", "") or ""
5858
GOOGLE_OAUTH_CLIENT_SECRET: str = os.getenv("GOOGLE_OAUTH_CLIENT_SECRET", "") or ""
5959
GITHUB_OAUTH_CLIENT_ID: str = os.getenv("GITHUB_OAUTH_CLIENT_ID", "") or ""

web/oss/src/lib/helpers/analytics/AgPosthogProvider.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ const CustomPosthogProvider: CustomPosthogProviderType = ({children}) => {
3232
if (!getEnv("NEXT_PUBLIC_POSTHOG_API_KEY")) return
3333

3434
posthog.init(getEnv("NEXT_PUBLIC_POSTHOG_API_KEY"), {
35-
api_host: "https://app.posthog.com",
35+
api_host: "https://alef.agenta.ai",
36+
ui_host: "https://us.posthog.com",
3637
// Enable debug mode in development
3738
loaded: (posthog) => {
3839
setPosthogClient(posthog)

0 commit comments

Comments
 (0)