Create real-time serverless applications with Postgres change data capture (CDC) and Supabase edge functions.
supabase/functions/webhook-handler
directory.supabase/functions/webhook-handler/index.ts
with:http://localhost:54321/functions/v1/webhook-handler
public.users
or public
).30000 ms
for “Request timeout” as this is more than enough time for your function to process the request1
for “Batch size” for now to ensure each change is processed individually.Authorization
header with the value Bearer YOUR_SUPABASE_ANON_KEY
.Authorization
header is required to authenticate the request with the edge function. You can find your SUPABASE_ANON_KEY
in the “Settings” > “API” page in the Supabase Dashboard. If you don’t want to authenticate your request (i.e. make the edge function public), you can deploy the edge function with the --no-verify-jwt
flag.