2026-05-01 15:51:12 +00:00
|
|
|
import { redirect } from "next/navigation";
|
|
|
|
|
import { isSetupComplete } from "@/lib/db";
|
|
|
|
|
|
2026-05-01 16:19:59 +00:00
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
|
|
2026-05-01 15:51:12 +00:00
|
|
|
export default function AuthLayout({ children }: { children: React.ReactNode }) {
|
|
|
|
|
if (!isSetupComplete()) redirect("/setup");
|
|
|
|
|
return <>{children}</>;
|
|
|
|
|
}
|