From 2b011c0596e13d63ddbca003b293621bb6afdd52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20BRAMILLE?= <2752200+oktapodia@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:06:04 +0000 Subject: [PATCH 1/2] fix: sitemap and robots --- src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index 69ac2d265..0273d3b8c 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -21,5 +21,5 @@ export function middleware(request: NextRequest) { // Applies this middleware only to specific paths export const config = { matcher: - '/((?!api|static|_next|favicon\\.ico|.*\\.(?:png|jp?eg|gif|webp|svg|ico|riv)).*)', + '/((?!api|static|_next|favicon\\.ico|.*\\.(?:png|jp?eg|gif|webp|svg|ico|xml|riv)).*)', }; From ca9a7ae6dc4ae4b8e437527af09c7b4fd3c03a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BRAMILLE=20S=C3=A9bastien?= <2752200+oktapodia@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:35:11 +0000 Subject: [PATCH 2/2] Update middleware.ts --- src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index 0273d3b8c..0956d49ee 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -21,5 +21,5 @@ export function middleware(request: NextRequest) { // Applies this middleware only to specific paths export const config = { matcher: - '/((?!api|static|_next|favicon\\.ico|.*\\.(?:png|jp?eg|gif|webp|svg|ico|xml|riv)).*)', + '/((?!api|static|_next|favicon\\.ico|.*\\.(?:png|jp?eg|gif|webp|svg|ico|xml|txt|riv)).*)', };