Files
sorsfonalak/services/frontend/src/app/page.tsx
T

11 lines
351 B
TypeScript
Raw Normal View History

import { redirect } from "next/navigation";
import { getMe } from "@/lib/server";
// No home page yet: logged-in users go to their chart (or to the profile to enter
// their birth data), others to login.
export default async function Home() {
const me = await getMe();
redirect(!me ? "/belepes" : me.primary_chart_id ? "/keplet" : "/profil");
}