error handling + file size

This commit is contained in:
asabizanjo
2025-12-11 19:12:00 +00:00
parent ffd65ebca1
commit 237b34ac4f
3 changed files with 18 additions and 1 deletions

View File

@@ -15,6 +15,13 @@ export async function middleware(req: NextRequest) {
}
export const config = {
matcher: ["/dashboard/:path*", "/api/files/:path*"],
matcher: [
"/dashboard/:path*",
// Match all /api/files routes EXCEPT /api/files/upload (which handles large bodies)
"/api/files/list",
"/api/files/delete-all",
"/api/files/:id/download",
"/api/files/:id/delete",
],
};