forked from fahrPool/fahrPool
9 lines
294 B
TypeScript
9 lines
294 B
TypeScript
import { redirect } from "next/navigation";
|
|
import { loadProfile } from "@/lib/auth/profile";
|
|
|
|
export default async function Home() {
|
|
const result = await loadProfile();
|
|
if (result.status === "ok" && result.profile.role === "superadmin") redirect("/plattform");
|
|
redirect("/dashboard");
|
|
}
|