Apply middleware only to /admin routes
This commit is contained in:
parent
a8d1d0dc15
commit
0ce0cceb5b
@ -1,5 +1,5 @@
|
|||||||
export { auth as middleware } from './auth';
|
export { auth as middleware } from './auth';
|
||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'],
|
matcher: ['/admin/:path*'],
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user