mirror of
https://github.com/supabase/supabase.git
synced 2026-06-01 18:34:37 +08:00
Sorted all imports in all packages, `cms`, `design-system` and `ui-library` apps by running `pnpm format` on them. All changes in this PR are done by the script.
22 lines
663 B
TypeScript
22 lines
663 B
TypeScript
import { type NextRequest } from 'next/server'
|
|
|
|
import { updateSession } from '@/registry/default/clients/nextjs/lib/supabase/middleware'
|
|
|
|
export async function middleware(request: NextRequest) {
|
|
return await updateSession(request)
|
|
}
|
|
|
|
export const config = {
|
|
matcher: [
|
|
/*
|
|
* Match all request paths except:
|
|
* - _next/static (static files)
|
|
* - _next/image (image optimization files)
|
|
* - favicon.ico (favicon file)
|
|
* - images - .svg, .png, .jpg, .jpeg, .gif, .webp
|
|
* Feel free to modify this pattern to include more paths.
|
|
*/
|
|
'/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)',
|
|
],
|
|
}
|