mirror of
https://github.com/Since-3/since3-portal.git
synced 2026-10-12 19:51:17 +00:00
11 lines
447 B
TypeScript
11 lines
447 B
TypeScript
import { redirect } from "next/navigation";
|
|
import { getProfile } from "@/lib/supabase/dal";
|
|
import LoginPageView from "@/modules/loginPage/ui/views/login-view";
|
|
|
|
export default async function Home() {
|
|
// Installierte App startet auf "/": mit gültiger Session direkt ins Dashboard.
|
|
const profile = await getProfile();
|
|
if (profile) redirect(profile.role === "admin" ? "/admin/dashboard" : "/client/dashboard");
|
|
|
|
return <LoginPageView/>;
|
|
}
|