diff --git a/apps/marginfi-v2-ui/src/utils/analytics.ts b/apps/marginfi-v2-ui/src/utils/analytics.ts index 2e9e4803eb..ced4f0e0ea 100644 --- a/apps/marginfi-v2-ui/src/utils/analytics.ts +++ b/apps/marginfi-v2-ui/src/utils/analytics.ts @@ -1,7 +1,6 @@ import posthog from "posthog-js"; -const _checkEnv = () => - !process.env.NEXT_PUBLIC_POSTHOG_API_KEY || process.env.NEXT_PUBLIC_MARGINFI_ENVIRONMENT !== "production"; +const _checkEnv = () => !process.env.NEXT_PUBLIC_POSTHOG_API_KEY || process.env.NEXT_PUBLIC_ANALYTICS !== "true"; export const init = () => { if (_checkEnv()) return; diff --git a/turbo.json b/turbo.json index 63a2a8a81e..d383d20581 100644 --- a/turbo.json +++ b/turbo.json @@ -60,6 +60,7 @@ "NEXT_PUBLIC_WEB3_AUTH_CLIENT_ID", "NEXT_PUBLIC_MOONPAY_API_KEY", "MOONPAY_SECRET_KEY", - "NEXT_PUBLIC_POSTHOG_API_KEY" + "NEXT_PUBLIC_POSTHOG_API_KEY", + "NEXT_PUBLIC_ANALYTICS" ] }