Skip to content

Commit

Permalink
fix: vercel build error
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminshafii committed Apr 20, 2024
1 parent 8e6e4ba commit f2f90d0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/lib/posthog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}`





}

0 comments on commit f2f90d0

Please sign in to comment.