feat : update
This commit is contained in:
@@ -9,7 +9,7 @@ export default async function ImageGeneratorLayout({
|
||||
children,
|
||||
}: LayoutProps<"/admin/image">) {
|
||||
await connection();
|
||||
if (!(await getAdminSession())) redirect("/admin/login");
|
||||
if (!(await getAdminSession())) redirect("/login?next=%2Fadmin");
|
||||
|
||||
return (
|
||||
<div className="min-h-svh">
|
||||
|
||||
Reference in New Issue
Block a user