fix: exclude sitemap.xml, robots.txt, llms.txt from auth middleware #47
@@ -63,6 +63,6 @@ export const config = {
|
|||||||
* - favicon.ico, manifest.json, icons, images (static assets)
|
* - favicon.ico, manifest.json, icons, images (static assets)
|
||||||
* - api routes (handled by their own auth)
|
* - 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