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"); }