mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-10-26 21:19:04 +08:00
@@ -7,7 +7,7 @@ import { Suspense, useEffect } from "react"
|
|||||||
|
|
||||||
export function PostHogProvider({ children }: { children: React.ReactNode }) {
|
export function PostHogProvider({ children }: { children: React.ReactNode }) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (process.env.DISABLE_POSTHOG === "true") return
|
if (process.env.NEXT_PUBLIC_DISABLE_POSTHOG === "true") return
|
||||||
// biome-ignore lint/style/noNonNullAssertion: The NEXT_PUBLIC_POSTHOG_KEY environment variable is guaranteed to be set in production.
|
// biome-ignore lint/style/noNonNullAssertion: The NEXT_PUBLIC_POSTHOG_KEY environment variable is guaranteed to be set in production.
|
||||||
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
|
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
|
||||||
ui_host: "https://eu.posthog.com",
|
ui_host: "https://eu.posthog.com",
|
||||||
|
|||||||
Reference in New Issue
Block a user