Skip to content

Commit

Permalink
fix: use null coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
Krish120003 committed Sep 19, 2024
1 parent 4c1f6dc commit 0fe6af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 0fe6af3

Please sign in to comment.