From 4341195e9167531288b394d025a60395a4a10912 Mon Sep 17 00:00:00 2001 From: Jaxcoder Date: Thu, 2 May 2024 09:13:21 -0400 Subject: [PATCH] update env name --- packages/grant-explorer/.env.example | 4 ++-- packages/grant-explorer/src/posthog.ts | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/grant-explorer/.env.example b/packages/grant-explorer/.env.example index ad1fae4ff5..21850a1c9b 100644 --- a/packages/grant-explorer/.env.example +++ b/packages/grant-explorer/.env.example @@ -72,5 +72,5 @@ REACT_APP_PASSPORT_API_COMMUNITY_ID_AVALANCHE="0000" REACT_APP_OSO_API_KEY= # https://posthog.com/docs/libraries/react -REACT_APP_PUBLIC_POSTHOG_KEY="" -REACT_APP_PUBLIC_POSTHOG_HOST="" \ No newline at end of file +REACT_APP_POSTHOG_KEY="" +REACT_APP_POSTHOG_HOST="" \ No newline at end of file diff --git a/packages/grant-explorer/src/posthog.ts b/packages/grant-explorer/src/posthog.ts index 522a9660d0..7765e6fc7b 100644 --- a/packages/grant-explorer/src/posthog.ts +++ b/packages/grant-explorer/src/posthog.ts @@ -2,12 +2,9 @@ import posthog from "posthog-js"; export const initPosthog = () => { console.log("Initializing Posthog"); - if ( - process.env.REACT_APP_PUBLIC_POSTHOG_KEY && - process.env.REACT_APP_PUBLIC_POSTHOG_HOST - ) { - posthog.init(process.env.REACT_APP_PUBLIC_POSTHOG_KEY, { - api_host: process.env.REACT_APP_PUBLIC_POSTHOG_HOST, + if (process.env.REACT_APP_POSTHOG_KEY && process.env.REACT_APP_POSTHOG_HOST) { + posthog.init(process.env.REACT_APP_POSTHOG_KEY, { + api_host: process.env.REACT_APP_POSTHOG_HOST, session_recording: { maskTextSelector: '[data-testid="rk-account-button"]', },