* Added loggin for the onboarding flow. * Logging for potential errors * feat: enhance onboarding error logging with server-side capture * Update app/(onboarding)/onboarding/page.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
19 lines
434 B
TypeScript
19 lines
434 B
TypeScript
import { createClient } from '@/lib/supabase/server'
|
|
import { SentryIdentify } from '@/components/SentryIdentify'
|
|
|
|
export default async function OnboardingLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
const supabase = await createClient()
|
|
const { data: { user } } = await supabase.auth.getUser()
|
|
|
|
return (
|
|
<>
|
|
{children}
|
|
{user && <SentryIdentify userId={user.id} email={user.email} />}
|
|
</>
|
|
)
|
|
}
|