import { redirect } from "next/navigation"; import { requireMe } from "@/lib/server"; // The user's own chart; without birth data the profile asks for it. export default async function MyChart() { const me = await requireMe("/keplet"); redirect(me.primary_chart_id ? `/kepletek/${me.primary_chart_id}` : "/profil#birth"); }