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