completionId: cgen-4ca41792a10e4d0a9705d995c903c691
cgen-4ca41792a10e4d0a9705d995c903c691
This commit is contained in:
parent
99bec31b60
commit
d04642c5a0
1 changed files with 1 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { createClient } from "@supabase/supabase-js";
|
||||
import type { VercelRequest, VercelResponse } from "@vercel/node";
|
||||
|
||||
const supabaseUrl = process.env.SUPABASE_URL || "";
|
||||
const supabaseServiceRole = process.env.SUPABASE_SERVICE_ROLE || "";
|
||||
|
|
@ -117,7 +116,7 @@ async function fetchFromSupabase(limit: number = 50): Promise<any[]> {
|
|||
}
|
||||
}
|
||||
|
||||
export default async function handler(req: VercelRequest, res: VercelResponse) {
|
||||
export default async function handler(req: any, res: any) {
|
||||
res.setHeader("Content-Type", "application/json");
|
||||
|
||||
if (req.method !== "GET") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue