Add dummy default export for Vercel compatibility
cgen-31ff757c81bc4e8c854b794eb5b435c9
This commit is contained in:
parent
7c42ebd863
commit
2a6211e05f
1 changed files with 9 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import type { VercelRequest, VercelResponse } from "@vercel/node";
|
||||||
import { createClient } from "@supabase/supabase-js";
|
import { createClient } from "@supabase/supabase-js";
|
||||||
|
|
||||||
const SUPABASE_URL =
|
const SUPABASE_URL =
|
||||||
|
|
@ -31,3 +32,11 @@ export function getAdminClient() {
|
||||||
|
|
||||||
// Alias for backward compatibility
|
// Alias for backward compatibility
|
||||||
export const supabase = getAdminClient();
|
export const supabase = getAdminClient();
|
||||||
|
|
||||||
|
// Dummy default export for Vercel (this file is a utility, not a handler)
|
||||||
|
export default async function handler(
|
||||||
|
req: VercelRequest,
|
||||||
|
res: VercelResponse,
|
||||||
|
) {
|
||||||
|
return res.status(501).json({ error: "Not a handler" });
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue