mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 04:45:08 +03:00
• Database schema with RLS policies for admin/builder roles • Edge function for creating Pico projects via Management API • SSO authentication with Google OAuth support • Auto-assignment of admin role to first user per organization • Next.js UI with project creation, listing, and detail views • Rate limiting (configurable), audit logging, and encrypted credentials • Server actions for project management operations Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
20 lines
602 B
TypeScript
20 lines
602 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: [
|
|
/*
|
|
* Match all request paths except for the ones starting with:
|
|
* - _next/static (static files)
|
|
* - _next/image (image optimization files)
|
|
* - favicon.ico (favicon file)
|
|
* Feel free to modify this pattern to include more paths.
|
|
*/
|
|
'/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)',
|
|
],
|
|
}
|