A personal media tracker built on the AT Protocol opnshelf.xyz

Disable PostHog debug logging in mobile and web

- Remove development-only PostHog config logging in mobile
- Stop enabling PostHog debug mode in mobile
- Remove web PostHog `debug` flag tied to dev environment

-14
-13
apps/mobile/lib/posthog.ts
··· 9 9 "https://eu.i.posthog.com"; 10 10 const isPostHogConfigured = !!apiKey && apiKey !== "phc_your_api_key_here"; 11 11 12 - if (__DEV__) { 13 - console.log("PostHog config:", { 14 - apiKey: apiKey ? "SET" : "NOT SET", 15 - host, 16 - isConfigured: isPostHogConfigured, 17 - }); 18 - } 19 - 20 12 if (!isPostHogConfigured) { 21 13 console.warn( 22 14 "PostHog API key not configured. Analytics will be disabled. " + ··· 61 53 fetchRetryCount: 3, 62 54 fetchRetryDelay: 3000, 63 55 }); 64 - 65 - // Enable debug mode in development for verbose logging 66 - if (__DEV__) { 67 - posthog.debug(true); 68 - } 69 56 70 57 export const isPostHogEnabled = isPostHogConfigured;
-1
apps/web/src/routes/__root.tsx
··· 159 159 ui_host: env.VITE_PUBLIC_POSTHOG_HOST, 160 160 defaults: "2025-05-24" as const, 161 161 capture_exceptions: true, 162 - debug: import.meta.env.DEV, 163 162 }; 164 163 165 164 return (