Initial working state: CL3.5 complete (Plesk sync + suspend/unsuspend)
This commit is contained in:
13
lib/supabase/admin.ts
Normal file
13
lib/supabase/admin.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createClient } from "@supabase/supabase-js";
|
||||
|
||||
import { env } from "@/lib/env";
|
||||
import type { Database } from "@/lib/types";
|
||||
|
||||
export function createSupabaseAdminClient() {
|
||||
return createClient<Database>(env.supabaseUrl, env.supabaseServiceRoleKey, {
|
||||
auth: {
|
||||
autoRefreshToken: false,
|
||||
persistSession: false,
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user