DB, Collections, Search

This commit is contained in:
Stefan Hardegger
2025-11-21 07:53:37 +01:00
parent c8eb6237c4
commit 8a03edbb88
67 changed files with 17703 additions and 103 deletions

25
middleware.ts Normal file
View File

@@ -0,0 +1,25 @@
import { NextResponse } from "next/server"
import type { NextRequest } from "next/server"
// NOTE: Middleware is temporarily disabled due to Edge Runtime compatibility issues
// with bcrypt. Auth protection is still enforced at the Server Action level.
// This will be re-enabled in a future update with proper edge-compatible auth.
export async function middleware(request: NextRequest) {
// Temporarily allow all requests
// Auth checks are still performed in Server Actions
return NextResponse.next()
}
export const config = {
matcher: [
/*
* Match all request paths except for the ones starting with:
* - api (API routes)
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon.ico (favicon file)
*/
"/((?!api|_next/static|_next/image|favicon.ico).*)",
],
}