MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getPostHogConfig

Function getPostHogConfig

freebuff/cli/release/index.js:102–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100})
101
102function getPostHogConfig() {
103 const apiKey =
104 process.env.CODEBUFF_POSTHOG_API_KEY ||
105 process.env.NEXT_PUBLIC_POSTHOG_API_KEY
106 const host =
107 process.env.CODEBUFF_POSTHOG_HOST ||
108 process.env.NEXT_PUBLIC_POSTHOG_HOST_URL
109
110 if (!apiKey || !host) {
111 return null
112 }
113
114 return { apiKey, host }
115}
116
117/**
118 * Track update failure event to PostHog.

Callers 1

trackUpdateFailedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected