Skip to content

Commit 65bc35c

Browse files
authored
fix(web): disable PostHog session replay only in local dev (#22)
Merged after Greptile CLI review clean, PR-side Greptile passed, and typecheck passed. Deploy preview failure is pre-existing (expired VERCEL_TOKEN).
1 parent 81cdaf8 commit 65bc35c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/src/lib/posthog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function getPostHogOptions(): Partial<PostHogConfig> {
5858
capture_pageleave: false,
5959
capture_pageview: false,
6060
defaults: "2026-01-30",
61-
disable_session_recording: true,
61+
disable_session_recording: import.meta.env.DEV,
6262
person_profiles: "identified_only",
6363
persistence: "localStorage+cookie",
6464
loaded: (client) => {

0 commit comments

Comments
 (0)