paper-ai-release-24-07-21/utils/supabase/servicerole.ts

14 lines
343 B
TypeScript
Raw Normal View History

2024-02-08 14:14:50 +08:00
import { createClient } from "@supabase/supabase-js";
export const supabaseAdmin = createClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
2024-02-09 23:09:48 +08:00
process.env.SUPABASE_SECRET_KEY || process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
2024-02-08 14:14:50 +08:00
{
auth: {
persistSession: false,
autoRefreshToken: false,
detectSessionInUrl: false,
},
}
);