From 083680232c838eaf5610bbdad0a8ffcd4f024a32 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Thu, 1 May 2025 23:29:41 +0700 Subject: [PATCH] editor2d posthog api key as env variable --- frontend/apps/editor2d/src/app/index.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/apps/editor2d/src/app/index.tsx b/frontend/apps/editor2d/src/app/index.tsx index ae1aa6847e..62b306511b 100644 --- a/frontend/apps/editor2d/src/app/index.tsx +++ b/frontend/apps/editor2d/src/app/index.tsx @@ -11,7 +11,7 @@ import "./global.css"; import { useRenderCounter } from "~/hooks/useRenderCounter"; function PostHogInit() { - const apiKey = "phc_jBFgac0mVALAFk3negnSfYCcHgvkT00yBLQDmCDYNBb"; + const apiKey = import.meta.env.VITE_POSTHOG_API_KEY; posthog.init(apiKey, { api_host: "https://us.i.posthog.com/", ui_host: "https://us.i.posthog.com/", @@ -41,10 +41,12 @@ const App = () => { } return ( <> - - - - + + + + + + ); };