From 0fe6af356b79348e35dde14fb91befbf2085f0a7 Mon Sep 17 00:00:00 2001 From: Krish120003 Date: Thu, 19 Sep 2024 13:56:22 -0400 Subject: [PATCH] fix: use null coalescing --- src/pages/_app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 0eb4dba..10bbdea 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -13,7 +13,7 @@ import { PostHogProvider } from "posthog-js/react"; if (typeof window !== "undefined") { // checks that we are client-side posthog.init(env.NEXT_PUBLIC_POSTHOG_KEY, { - api_host: env.NEXT_PUBLIC_POSTHOG_HOST || "https://us.i.posthog.com", + api_host: env.NEXT_PUBLIC_POSTHOG_HOST ?? "https://us.i.posthog.com", person_profiles: "identified_only", // or 'always' to create profiles for anonymous users as well ui_host: "https://app.posthog.com", loaded: (posthog) => {