refactor: simplify middleware
All checks were successful
container-scan / Container Scan (pull_request) Successful in 2m47s
docker-build / docker (pull_request) Successful in 4m33s

This commit is contained in:
micha 2025-05-22 15:12:23 +02:00
parent 784549f7e1
commit 5bcb16a9b5

View file

@ -2,6 +2,6 @@ export { auth as middleware } from '@/auth';
export const config = {
matcher: [
'/((?!api|_next/static|_next/image|favicon.ico|favicon-96x96.png|favicon.svg|site.webmanifest|web-app-manifest-192x192.png|web-app-manifest-512x512.png|favicon-dark.svg|favicon-light.svg|favicon-light.png|favicon-dark.png).*)',
'/((?!api|_next/static|_next/image|site.webmanifest|web-app-manifest-192x192.png|web-app-manifest-512x512.png|favicon-(?:dark|light)?\.(?:png|svg)).*)',
],
};