feat: add better auth sqlite runtime and server-side session flow
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { type NextRequest } from 'next/server'
|
||||
import { NextResponse, type NextRequest } from 'next/server'
|
||||
|
||||
import { updateSession } from '@/lib/supabase/middleware'
|
||||
|
||||
export async function proxy(request: NextRequest) {
|
||||
return updateSession(request)
|
||||
export function proxy(request: NextRequest) {
|
||||
return NextResponse.next({
|
||||
request,
|
||||
})
|
||||
}
|
||||
|
||||
export const config = {
|
||||
matcher: [
|
||||
'/((?!api/health|_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)',
|
||||
'/((?!api/health|api/auth|_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)',
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user