fix(middleware): prevent redirect for xml and txt files

This commit is contained in:
mstfyldz
2026-05-31 00:52:32 +03:00
parent 3756e60441
commit 6aaa359f36
+1 -1
View File
@@ -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;
}