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