mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 16:38:14 +00:00
editor2d posthog api key as env variable
This commit is contained in:
1 parent
b1b44ceb60
commit
083680232c
1 file changed
+7
-5
@@ -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 (
|
||||
<>
|
||||
<JobProvider>
|
||||
<RouterProvider router={router} />
|
||||
<Toaster />
|
||||
</JobProvider>
|
||||
<PostHogProvider client={posthog}>
|
||||
<JobProvider>
|
||||
<RouterProvider router={router} />
|
||||
<Toaster />
|
||||
</JobProvider>
|
||||
</PostHogProvider>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user