next-enterprise/middleware.ts
2024-01-24 11:35:08 +08:00

16 lines
430 B
TypeScript

import type { NextRequest } from "next/server"
export function middleware(request: NextRequest) {}
export const config = {
matcher: [
/*
* Match all request paths except for the ones starting with:
* - api (API routes)
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon.ico (favicon file)
*/
"/((?!api|_next/static|_next/image|favicon.ico).*)",
],
}