We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93c7cae commit c3e678fCopy full SHA for c3e678f
1 file changed
packages/agent/src/utils/gateway.ts
@@ -3,13 +3,13 @@ export function getLlmGatewayUrl(posthogHost: string): string {
3
const hostname = url.hostname;
4
5
if (hostname === "localhost" || hostname === "127.0.0.1") {
6
- return `${url.protocol}//localhost:3308`;
+ return `${url.protocol}//localhost:3308/array`;
7
}
8
9
// Extract region from hostname (us.posthog.com, eu.posthog.com)
10
// app.posthog.com is legacy US
11
const regionMatch = hostname.match(/^(us|eu)\.posthog\.com$/);
12
const region = regionMatch ? regionMatch[1] : "us";
13
14
- return `https://gateway.${region}.posthog.com`;
+ return `https://gateway.${region}.posthog.com/array`;
15
0 commit comments