Skip to content

Commit 39e61d9

Browse files
fix
1 parent bcca1d6 commit 39e61d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/web/src/lib/posthog.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ const getPostHogCookie = (cookieStore: Pick<RequestCookies, 'get'>): PostHogCook
4848
}
4949

5050
export async function captureEvent<E extends PosthogEvent>(event: E, properties: PosthogEventMap[E]) {
51+
if (env.SOURCEBOT_TELEMETRY_DISABLED === 'true') {
52+
return;
53+
}
54+
5155
const cookieStore = await cookies();
5256
const cookie = getPostHogCookie(cookieStore);
5357

0 commit comments

Comments
 (0)