fix(middleware): prevent redirect for xml and txt files
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user