import { redirect } from "next/navigation";
import { hasAdminUser } from "@/lib/setup";

export const dynamic = "force-dynamic";

export default async function HomePage() {
  if (!(await hasAdminUser())) {
    redirect("/setup");
  }

  redirect("/dashboard");
}
