20 lines
710 B
TypeScript
20 lines
710 B
TypeScript
import { redirect } from "next/navigation";
|
|
import { isAdminUiEnabled } from "@/lib/server/admin-auth";
|
|
|
|
export default function SignInPage() {
|
|
if (!isAdminUiEnabled()) {
|
|
redirect("/");
|
|
}
|
|
|
|
return (
|
|
<div className="flex min-h-screen items-center justify-center bg-muted/30 px-6">
|
|
<div className="max-w-md rounded-2xl border border-border bg-background p-8 text-center shadow-sm">
|
|
<h1 className="text-2xl font-semibold">Admin Sign-In</h1>
|
|
<p className="mt-3 text-sm text-muted-foreground">
|
|
Admin sign-in is not configured in this deployment. Enable the admin
|
|
UI and wire an auth provider before using this area.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|