Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

582 B
Raw Blame
'use client'

import './globals.css'

import { useEffect } from 'react'

import { AuthProvider } from '@/lib/auth'
import { initPostHog } from '@/lib/posthog'

export default function RootLayout({ children }: { children: React.ReactNode }): React.JSX.Element {
    useEffect(() => {
        initPostHog()
    }, [])

    return (
        <html lang="en" data-theme="hedgebox">
            <body>
                <AuthProvider>
                    <div className="min-h-screen bg-base-100">{children}</div>
                </AuthProvider>
            </body>
        </html>
    )
}