Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix post hog on app.infisical frontend
Maidul Islam3ba90cc42df4
diff --git a/frontend/src/components/analytics/posthog.ts b/frontend/src/components/analytics/posthog.tsindex cc26e55121..f9285012ea 100644--- a/frontend/src/components/analytics/posthog.ts+++ b/frontend/src/components/analytics/posthog.ts@@ -10,7 +10,7 @@ export const initPostHog = () => {try {if (typeof window !== "undefined") {// @ts-ignore- if (ENV === "production" && TELEMETRY_CAPTURING_ENABLED === "true") {+ if (ENV === "production" && TELEMETRY_CAPTURING_ENABLED === true) {posthog.init(POSTHOG_API_KEY, {api_host: POSTHOG_HOST});diff --git a/frontend/src/components/utilities/telemetry/Telemetry.ts b/frontend/src/components/utilities/telemetry/Telemetry.tsindex 6f6fc23672..860314d166 100644--- a/frontend/src/components/utilities/telemetry/Telemetry.ts+++ b/frontend/src/components/utilities/telemetry/Telemetry.ts@@ -13,7 +13,7 @@ class Capturer {}capture(item: string) {- if (ENV === "production" && TELEMETRY_CAPTURING_ENABLED === "true") {+ if (ENV === "production" && TELEMETRY_CAPTURING_ENABLED === true) {try {this.api.capture(item);} catch (error) {@@ -23,7 +23,7 @@ class Capturer {}identify(id: string, email?: string) {- if (ENV === "production" && TELEMETRY_CAPTURING_ENABLED === "true") {+ if (ENV === "production" && TELEMETRY_CAPTURING_ENABLED === true) {try {this.api.identify(id, {email: email