DB, Collections, Search
This commit is contained in:
25
middleware.ts
Normal file
25
middleware.ts
Normal 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).*)",
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user