File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_project_id_here
88NEXT_PUBLIC_SUPABASE_URL =
99NEXT_PUBLIC_SUPABASE_ANON_KEY =
1010NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY =
11+ SUPABASE_SECRET_KEY =
Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ type CheckEmailBody = {
77
88export async function POST ( request : NextRequest ) {
99 const supabaseUrl = process . env . NEXT_PUBLIC_SUPABASE_URL ;
10- const serviceRoleKey = process . env . SUPABASE_SERVICE_ROLE_KEY ;
10+ const serviceRoleKey = process . env . SUPABASE_SECRET_KEY ?? process . env . SUPABASE_SERVICE_ROLE_KEY ;
1111
1212 if ( ! supabaseUrl || ! serviceRoleKey ) {
13- return NextResponse . json ( { error : "Missing Supabase server configuration." } , { status : 500 } ) ;
13+ return NextResponse . json (
14+ { error : "Missing Supabase server configuration. Set SUPABASE_SECRET_KEY or SUPABASE_SERVICE_ROLE_KEY." } ,
15+ { status : 500 }
16+ ) ;
1417 }
1518
1619 let body : CheckEmailBody = { } ;
You can’t perform that action at this time.
0 commit comments