Add dark aesthetic, animated UI previews, icon-only design, clean copy, responsive layout, stats section, feature grid, clear CTAs Co-authored-by: Moheeb Zara <[email protected]>
13 lines
354 B
TypeScript
13 lines
354 B
TypeScript
import { createClient } from '@/lib/supabase/server'
|
|
import { redirect } from 'next/navigation'
|
|
import LandingPage from './(landing)/page'
|
|
|
|
export default async function RootPage() {
|
|
const supabase = await createClient()
|
|
const { data: { user } } = await supabase.auth.getUser()
|
|
if (user) {
|
|
redirect('/dashboard')
|
|
}
|
|
return <LandingPage />
|
|
}
|