fix: exclude sitemap.xml, robots.txt, llms.txt from auth middleware
This commit is contained in:
@@ -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/).*)',
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user