import { redirect } from 'next/navigation' import { getCurrentUser } from '@/lib/auth/current' export const dynamic = 'force-dynamic' export default async function Root() { redirect((await getCurrentUser()) ? '/uebersicht' : '/anmelden') }