feat: implement authentication middleware and configure Claude project permissions

This commit is contained in:
Michael committed 2026-04-07 12:31:58 +02:00
1 parent b5bda8abf7
commit acd30cfdea
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ export default auth((req) => {
const { nextUrl } = req;
const isApiAuthRoute = nextUrl.pathname.startsWith("/api/auth");
const isPublicRoute = nextUrl.pathname === "/login" || nextUrl.pathname.startsWith("/public");
const isPublicRoute = nextUrl.pathname === "/login" || nextUrl.pathname.startsWith("/public/");
// 1. Laisser passer les requêtes d'auth API
if (isApiAuthRoute) return NextResponse.next();