Just put this :
export const config = { matcher: ['/((?!api|_next/static|_next/image|favicon.ico|.*\\..*$).*)'] }