SupabaseS
Supabase2mo ago
huh

Edge Function: Deno.supabase is undefined after deployment

Hi, I’m having trouble with my Supabase Edge Function.
After deploying with CLI v2.54.11, my function uses Deno.supabase.from('orders').insert(...), but I get this error: Cannot read properties of undefined (reading 'from') (this error is actually from my react native code)

  • I’m calling the deployed endpoint (https://<my-project-ref>.functions.supabase.co/place-order) , not localhost.
  • My code matches the official docs for Edge Functions.
  • Is there a recent change to how Edge Functions access the Supabase client?
  • How should I access the database in Edge Functions now?
Thanks for any help
Was this page helpful?