Skip to content

Commit 70365ba

Browse files
authored
Merge pull request #126 from makcimerrr/hotfix/favicon-middleware
fix(ui): favicon /icon.svg exclu du middleware
2 parents 427edca + d1db601 commit 70365ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export async function middleware(req: NextRequest) {
307307
export const config = {
308308
matcher: [
309309
// Protéger toutes les routes sauf les fichiers statiques et API
310-
'/((?!api|_next/static|_next/image|favicon.ico).*)',
310+
'/((?!api|_next/static|_next/image|favicon.ico|icon.svg).*)',
311311
// Exceptions : on inclut explicitement les mutations de config exposées en API
312312
'/api/projects/:path*',
313313
'/api/holidays/:path*',

0 commit comments

Comments
 (0)