Edge Functions in Supabase

From the Supabase cheat sheet ยท Edge Functions ยท verified Jul 2026

Edge Functions

Deploy and invoke serverless functions

typescript
// Create function (functions/hello/index.ts)
import { serve } from 'https://deno.land/std@0.168.0/http/server.ts'

serve(async (req) => {
  const { name } = await req.json()
  return new Response(
    JSON.stringify({ message: `Hello ${name}!` }),
    { headers: { 'Content-Type': 'application/json' } }
  )
})

// Deploy
supabase functions deploy hello

// Invoke
const { data, error } = await supabase.functions
  .invoke('hello', { body: { name: 'World' } })
โšก Deno-based serverless functions
๐ŸŒ Deploy globally at the edge
๐Ÿ” Automatic auth integration
๐Ÿ“… Cron job support for scheduled tasks
Back to the full Supabase cheat sheet