remove cluster names and add it behind env flag (if someone want to scale)

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-11-11 21:27:17 +01:00
parent d8661acd66
commit 9ee3d61a25
6 changed files with 48 additions and 544 deletions

View File

@@ -150,7 +150,6 @@ export async function handler(
promises.push(
track({
log: request.log.info,
payload: request.body.payload,
currentDeviceId,
previousDeviceId,
@@ -217,7 +216,6 @@ async function track({
headers,
timestamp,
isTimestampFromThePast,
log,
}: {
payload: TrackPayload;
currentDeviceId: string;
@@ -227,7 +225,6 @@ async function track({
headers: Record<string, string | undefined>;
timestamp: number;
isTimestampFromThePast: boolean;
log: any;
}) {
const uaInfo = parseUserAgent(headers['user-agent'], payload.properties);
const groupId = uaInfo.isServer