src/app/page.tsx
import { redirect } from "next/navigation";
import { cookies } from "next/headers";
export default function RootPage() {
// If authenticated, go to dashboard; otherwise middleware sends to /login
redirect("/sources");
}