Chore/disable telemetry by default (#4427)

disable telemetry by default
This commit is contained in:
Henry Heng
2025-05-15 00:19:05 +08:00
committed by GitHub
parent a27826cdc0
commit 624143ad15
8 changed files with 2 additions and 14 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ export class Telemetry {
postHog?: PostHog
constructor() {
if (process.env.DISABLE_FLOWISE_TELEMETRY !== 'true') {
this.postHog = new PostHog('phc_jEDuFYnOnuXsws986TLWzuisbRjwFqTl9JL8tDMgqme')
if (process.env.POSTHOG_PUBLIC_API_KEY) {
this.postHog = new PostHog(process.env.POSTHOG_PUBLIC_API_KEY)
} else {
this.postHog = undefined
}