fix: middleware matcher regex syntax error

This commit is contained in:
2026-06-02 05:35:52 +00:00
parent 00deda1350
commit f6d2dc4e6c
-2
View File
@@ -89,7 +89,5 @@ export const config = {
matcher: [
// Skip Next.js internals and all files in the _next directory
"/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)",
// Run for API routes that need auth checking
"/(api)(?!.*\\.(?:json|ico|png|jpg|jpeg|gif|webp|svg|ttf|woff|woff2|less|css)).*)",
],
};