Initial commit from v0

This commit is contained in:
v0
2026-03-11 04:44:48 +00:00
commit 296c5dd78d
123 changed files with 21242 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { createClient } from '@supabase/supabase-js'
/**
* Admin client using the service role key.
* This bypasses RLS - use only for trusted server-side operations.
* NEVER expose this client to the browser.
*/
export function createAdminClient() {
return createClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.SUPABASE_SERVICE_ROLE_KEY!,
{
auth: {
autoRefreshToken: false,
persistSession: false,
},
}
)
}