fix(admin-ui): allow public recent-errors API path without login redirect
Keep /api/error-monitoring/recent-errors reachable for Paperclip error loop (including path variants) so central hub returns JSON instead of 307 /login.
This commit is contained in:
1 parent
bc8bd8707f
commit
e0af92eda1
1 file changed
+1
-1
@@ -23,7 +23,7 @@ export function middleware(request: NextRequest) {
|
||||
const { pathname } = request.nextUrl;
|
||||
|
||||
/** Paperclip error loop + CRM contract: JSON GET with api_key; must not 307 to /login. */
|
||||
if (pathname === "/api/error-monitoring/recent-errors") {
|
||||
if (pathname.startsWith("/api/error-monitoring/recent-errors")) {
|
||||
return NextResponse.next();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user