From 1030e13c5ae2df5f4b64d9e6215f665c00c66a95 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Mon, 30 Mar 2026 15:29:48 -0700 Subject: [PATCH] fix(analytics): use getBaseDomain for Profound host field request.url resolves to internal ALB hostname on ECS, not the public domain --- apps/sim/lib/analytics/profound.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/sim/lib/analytics/profound.ts b/apps/sim/lib/analytics/profound.ts index 6ad00743fb..7b2183dcb1 100644 --- a/apps/sim/lib/analytics/profound.ts +++ b/apps/sim/lib/analytics/profound.ts @@ -8,6 +8,7 @@ import { createLogger } from '@sim/logger' import { env } from '@/lib/core/config/env' import { isHosted } from '@/lib/core/config/feature-flags' +import { getBaseDomain } from '@/lib/core/utils/urls' const logger = createLogger('ProfoundAnalytics') @@ -97,7 +98,7 @@ export function sendToProfound(request: Request, statusCode: number): void { buffer.push({ timestamp: new Date().toISOString(), method: request.method, - host: url.hostname, + host: getBaseDomain(), path: url.pathname, status_code: statusCode, ip: