mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix(analytics): use getBaseDomain for Profound host field (#3848)
request.url resolves to internal ALB hostname on ECS, not the public domain
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user