Fix: exclude static image files from auth middleware matcher

This commit is contained in:
lorentz 2026-04-13 02:58:02 +00:00
parent cf79b3453d
commit 384821de33

View file

@ -71,6 +71,6 @@ export const config = {
* - _next/image (image optimization files)
* - favicon.ico (favicon file)
*/
'/((?!api/auth|_next/static|_next/image|favicon.ico).*)',
'/((?!api/auth|_next/static|_next/image|favicon.ico|.*\\.png|.*\\.webp|.*\\.svg|.*\\.jpg|.*\\.ico).*)',
],
}