Skip to content

Commit c3e678f

Browse files
authored
feat: add array product to gateway (#503)
1 parent 93c7cae commit c3e678f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/agent/src/utils/gateway.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ export function getLlmGatewayUrl(posthogHost: string): string {
33
const hostname = url.hostname;
44

55
if (hostname === "localhost" || hostname === "127.0.0.1") {
6-
return `${url.protocol}//localhost:3308`;
6+
return `${url.protocol}//localhost:3308/array`;
77
}
88

99
// Extract region from hostname (us.posthog.com, eu.posthog.com)
1010
// app.posthog.com is legacy US
1111
const regionMatch = hostname.match(/^(us|eu)\.posthog\.com$/);
1212
const region = regionMatch ? regionMatch[1] : "us";
1313

14-
return `https://gateway.${region}.posthog.com`;
14+
return `https://gateway.${region}.posthog.com/array`;
1515
}

0 commit comments

Comments
 (0)