Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/simstudioai/sim
/ getPostHogClient
Function
getPostHogClient
apps/sim/lib/posthog/server.ts:10–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
let
_disabled = false
9
10
export
function
getPostHogClient(): PostHog | null {
11
return
getClient()
12
}
13
14
function
getClient(): PostHog | null {
15
if
(_disabled)
return
null
Callers
2
auth.ts
File · 0.90
shutdownPostHog
Function · 0.85
Calls
1
getClient
Function · 0.70
Tested by
no test coverage detected