13 lines
360 B
TypeScript
13 lines
360 B
TypeScript
import { updateSession } from '@/lib/supabase/middleware'
|
|
import { type NextRequest } from 'next/server'
|
|
|
|
export async function middleware(request: NextRequest) {
|
|
return await updateSession(request)
|
|
}
|
|
|
|
export const config = {
|
|
matcher: [
|
|
'/((?!_next/static|_next/image|favicon.ico|manifest.json|icons/.*|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)',
|
|
],
|
|
}
|