From dc422b5920efedcdb3b4d7aa14de7ff58d7ddf07 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 13 Mar 2026 14:44:52 +0100 Subject: [PATCH] fix: exclude sitemap.xml, robots.txt, llms.txt from auth middleware --- middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware.ts b/middleware.ts index 80eb554..9241a5f 100644 --- a/middleware.ts +++ b/middleware.ts @@ -63,6 +63,6 @@ export const config = { * - favicon.ico, manifest.json, icons, images (static assets) * - api routes (handled by their own auth) */ - '/((?!_next/static|_next/image|favicon\\.ico|manifest\\.json|.*\\.png$|.*\\.svg$|.*\\.ico$|api/).*)', + '/((?!_next/static|_next/image|favicon\\.ico|manifest\\.json|sitemap\\.xml|robots\\.txt|llms\\.txt|.*\\.png$|.*\\.svg$|.*\\.ico$|api/).*)', ], }