Files
Chris CarusoandClaude Sonnet 4.5 b78d05b89f feat: implement SupaBuilder - enterprise self-service Supabase project provisioning
• 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>
2026-01-31 14:42:37 -06:00

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)$).*)',
],
}