Apply middleware only to /admin routes

This commit is contained in:
Sam Becker 2023-09-06 08:37:17 -05:00
parent a8d1d0dc15
commit 0ce0cceb5b

View File

@ -1,5 +1,5 @@
export { auth as middleware } from './auth';
export const config = {
matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'],
matcher: ['/admin/:path*'],
};