Skip to content

Commit

Permalink
Update _app.tsx (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsalcido authored Dec 9, 2023
1 parent f79cad1 commit efef2d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type AppPropsWithLayout = AppProps & {

// Check that PostHog is client-side (used to handle Next.js SSR)
if (typeof window !== 'undefined') {
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY || '', {
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_ID || '', {
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST || 'https://app.posthog.com',
// Enable debug mode in development
loaded: (posthog) => {
Expand Down Expand Up @@ -46,4 +46,4 @@ export default function App({ Component, pageProps }: AppPropsWithLayout) {
</Layout>
</PostHogProvider>
)
}
}

0 comments on commit efef2d6

Please sign in to comment.