fix: exclude sitemap.xml, robots.txt, llms.txt from auth middleware #47

Merged
uz1mani merged 1 commits from staging into main 2026-03-13 13:45:30 +00:00
Showing only changes of commit dc422b5920 - Show all commits

View File

@@ -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/).*)',
],
}