From f2f90d0aac2b21f26f756a92ba792f9ede8c4bd1 Mon Sep 17 00:00:00 2001 From: Benjamin Shafii Date: Sat, 20 Apr 2024 10:38:25 +0200 Subject: [PATCH] fix: vercel build error --- app/lib/posthog.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/lib/posthog.js b/app/lib/posthog.js index 9a65e622..29fbc7d9 100644 --- a/app/lib/posthog.js +++ b/app/lib/posthog.js @@ -4,16 +4,11 @@ import { PostHog } from 'posthog-node' export default function PostHogClient() { if (!process.env.NEXT_PUBLIC_POSTHOG_KEY) { return null - } + } const posthogClient = new PostHog(process.env.NEXT_PUBLIC_POSTHOG_KEY, { host: process.env.NEXT_PUBLIC_POSTHOG_HOST || 'https://app.posthog.com', flushAt: 1, flushInterval: 0 }) return posthogClient -}` - - - - - +}