diff --git a/apps/webapp/app/hooks/usePostHog.ts b/apps/webapp/app/hooks/usePostHog.ts index c7e5cfb..d66aae6 100644 --- a/apps/webapp/app/hooks/usePostHog.ts +++ b/apps/webapp/app/hooks/usePostHog.ts @@ -19,7 +19,7 @@ export const usePostHog = ( if (postHogInitialized.current === true) return; if (logging) console.log("Initializing PostHog"); posthog.init(apiKey, { - api_host: "/relay-Xm1a", + api_host: "/ph-relay-core20", ui_host: "https://us.posthog.com", opt_in_site_apps: true, debug, diff --git a/apps/webapp/app/routes/.$.tsx b/apps/webapp/app/routes/ph-relay-core20.$.tsx similarity index 86% rename from apps/webapp/app/routes/.$.tsx rename to apps/webapp/app/routes/ph-relay-core20.$.tsx index 25023f0..5f378ad 100644 --- a/apps/webapp/app/routes/.$.tsx +++ b/apps/webapp/app/routes/ph-relay-core20.$.tsx @@ -5,7 +5,7 @@ const ASSET_HOST = "us-assets.i.posthog.com"; const posthogProxy = async (request: Request) => { const url = new URL(request.url); - const hostname = url.pathname.startsWith("/relay-Xm1a/static/") + const hostname = url.pathname.startsWith("/ph-relay-core20/static/") ? ASSET_HOST : API_HOST; @@ -13,7 +13,7 @@ const posthogProxy = async (request: Request) => { newUrl.protocol = "https"; newUrl.hostname = hostname; newUrl.port = "443"; - newUrl.pathname = newUrl.pathname.replace(/^\/relay-Xm1a/, ""); + newUrl.pathname = newUrl.pathname.replace(/^\/ph-relay-core20/, ""); const headers = new Headers(request.headers); headers.set("host", hostname);