import { redirect } from "next/navigation";
import { getCachedCurrentUser } from "@/lib/auth";

export default async function HomePage() {
  const user = await getCachedCurrentUser();

  redirect(user ? "/studio" : "/login");
}
