File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed
Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,16 @@ const supabaseServiceKey = process.env.SUPABASE_SERVICE_ROLE_KEY;
88 * WARNING: Only use this in server-side code and server actions
99 * This bypasses RLS policies - use with extreme caution
1010 */
11- export async function createClient ( ) {
12- return createSupabaseClient (
13- supabaseUrl ! ,
14- supabaseServiceKey ! ,
15- {
16- auth : {
17- autoRefreshToken : false ,
18- persistSession : false
19- }
11+ export const supabaseAdmin = createSupabaseClient (
12+ supabaseUrl ! ,
13+ supabaseServiceKey ! ,
14+ {
15+ auth : {
16+ autoRefreshToken : false ,
17+ persistSession : false
2018 }
21- ) ;
22- } ;
19+ }
20+ ) ;
2321
24- /**
25- * Legacy export for backward compatibility
26- */
27- export const supabaseAdmin = createClient ;
22+ // Backward compatibility function
23+ export const createClient = async ( ) => supabaseAdmin ;
Original file line number Diff line number Diff line change 1+ export * from './admin' ;
2+ export { createClient as createBrowserClient , supabase } from './client' ;
3+ export { createClient as createServerClient } from './server' ;
You can’t perform that action at this time.
0 commit comments