matcher 옵션으로 미들웨어 대상 경로 제한.
export const config = { matcher: ['/admin/:path*', '/((?!api|_next).*)'] };