diff --git a/src/app/admin/layout.tsx b/src/app/admin/layout.tsx index f21fe4708..94ac00a2b 100644 --- a/src/app/admin/layout.tsx +++ b/src/app/admin/layout.tsx @@ -13,6 +13,10 @@ export default async function AdminLayout({ return redirect('/signin'); } + if (process.env.LOCAL_CMS_PROVIDER) { + return <>{children} + } + if (!process.env.ADMINS?.split(',').includes(session.user.email!)) { return notFound(); }