1
0
Fork 0
fahrPool/web/app/page.tsx

9 lines
320 B
TypeScript

import { redirect } from "next/navigation";
import { loadProfile } from "@/lib/auth/profile";
import { navigationFuer } from "@/lib/navigation";
export default async function Home() {
const result = await loadProfile();
redirect(result.status === "ok" ? navigationFuer(result.profile.role).start : "/dashboard");
}