From 6aaa359f36b7defabdbffd2191c581bd7102cad2 Mon Sep 17 00:00:00 2001 From: mstfyldz Date: Sun, 31 May 2026 00:52:32 +0300 Subject: [PATCH] fix(middleware): prevent redirect for xml and txt files --- proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy.ts b/proxy.ts index a30663b..b81abd8 100644 --- a/proxy.ts +++ b/proxy.ts @@ -35,7 +35,7 @@ export function proxy(request: NextRequest) { pathname.startsWith("/_next") || pathname.startsWith("/api") || pathname.startsWith("/favicon.ico") || - pathname.match(/\.(png|jpg|jpeg|gif|svg|webp|ico|css|js|woff|woff2|ttf|otf|json)$/) + pathname.match(/\.(png|jpg|jpeg|gif|svg|webp|ico|css|js|woff|woff2|ttf|otf|json|xml|txt)$/) ) { return; }