fix: vercel部署密钥问题

This commit is contained in:
liuweiqing 2024-02-09 23:09:48 +08:00
parent 01d703a17b
commit 84e0363313

View File

@ -2,7 +2,7 @@ import { createClient } from "@supabase/supabase-js";
export const supabaseAdmin = createClient( export const supabaseAdmin = createClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!, process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.SUPABASE_SECRET_KEY!, process.env.SUPABASE_SECRET_KEY || process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
{ {
auth: { auth: {
persistSession: false, persistSession: false,