import { redirect } from "next/navigation"; async function checkSession() { // This will be called on the server; client will redirect return null; } export default function RootPage() { redirect("/login"); }