From 0ce0cceb5b00a731708200a001ae4a36ec5dfe66 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Wed, 6 Sep 2023 08:37:17 -0500 Subject: [PATCH] Apply middleware only to /admin routes --- src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index 4596922f..72ff19f6 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -1,5 +1,5 @@ export { auth as middleware } from './auth'; export const config = { - matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'], + matcher: ['/admin/:path*'], };