completionId: cgen-1792c2b1ccb048f5ab70773803ccd9b3
cgen-1792c2b1ccb048f5ab70773803ccd9b3
This commit is contained in:
parent
add103dba7
commit
32b29ed7e3
1 changed files with 2 additions and 1 deletions
|
|
@ -17,7 +17,8 @@ export default async function handler(req: any, res: any) {
|
|||
.json({ message: "Missing verification code or user ID" });
|
||||
}
|
||||
|
||||
const supabaseUrl = process.env.VITE_SUPABASE_URL;
|
||||
// Try both possible env var names for backwards compatibility
|
||||
const supabaseUrl = process.env.SUPABASE_URL || process.env.VITE_SUPABASE_URL;
|
||||
const supabaseServiceRole = process.env.SUPABASE_SERVICE_ROLE;
|
||||
|
||||
if (!supabaseUrl || !supabaseServiceRole) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue