This commit is contained in:
2026-06-14 16:17:25 +03:00
parent e2c51d3b9e
commit 2d149f1178
18 changed files with 3399 additions and 219 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { routing } from '@/i18n/routing'
const intlMiddleware = createMiddleware(routing)
export async function middleware(request: NextRequest) {
export async function proxy(request: NextRequest) {
if (request.nextUrl.pathname.includes('/admin')) {
const session = await auth()
if (!session || (session.user as any)?.role !== 'ADMIN') {