Update production deployment references

This commit is contained in:
2569718930@qq.com
2026-06-14 23:13:37 +08:00
parent e909f1f4c9
commit ef21a5808e
11 changed files with 22 additions and 26 deletions
@@ -41,7 +41,7 @@ async function findSupabaseUserIdByEmail(email: string) {
.replace(/\/$/, "");
const serviceRoleKey = String(process.env.SUPABASE_SERVICE_ROLE_KEY || "").trim();
if (!supabaseUrl || !serviceRoleKey) {
throw new Error("Supabase service role is not configured on Vercel");
throw new Error("Supabase service role is not configured on the server");
}
const profileRes = await fetch(
`${supabaseUrl}/rest/v1/profiles?select=id&email=eq.${encodeURIComponent(email)}&limit=1`,