Enhance Next.js configuration and dependencies for improved functionality and localization support. Added support for internationalization with next-intl, updated global styles, and integrated new fonts. Removed default home page and updated README with project details and setup instructions.

This commit is contained in:
smhk1376 committed 2026-09-24 14:53:01 +03:30
1 parent 2911dea00b
commit 44f4fa98e2
320 files changed
+31666 -220

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import { redirect } from "next/navigation";
import { verifySession } from "@/lib/auth/admin";
import { AdminShell } from "@/components/organisms/admin/AdminShell";
// Authoritative admin guard + shell.
// - Verifies the session against the database for every /admin page
// (login lives outside this route group, see src/app/admin/login).
// - Proxy only does a fast cookie-presence redirect; this is the real check.
export default async function AdminGuardLayout({
children,
}: {
children: React.ReactNode;
}) {
const session = await verifySession();
if (!session) {
redirect("/admin/login");
}
return <AdminShell userName={session.name}>{children}</AdminShell>;
}