You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/frameworks/supabase-edge-functions-database-webhooks.mdx
+11-7Lines changed: 11 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,9 @@ import WorkerFailedToStartWhenRunningDevCommand from "/snippets/worker-failed-to
18
18
19
19
## Overview
20
20
21
-
Database webhooks allow you to send realtime data from your database to another system whenever an event occurs in your table.
21
+
Database webhooks allow you to send realtime data from your database to another system whenever an event occurs in your table e.g. when a row is inserted, updated, or deleted, or when a specific column is updated.
22
22
23
-
This could be when a new row is inserted, updated, or deleted, or when a specific column is updated.
24
-
25
-
This guide shows you how to set up and deploy a simple Supabase edge function that triggers a task every time a new row is added to your database.
23
+
This guide shows you how to set up and deploy a simple Supabase edge function that triggers a task every time a new row is inserted to your database.
26
24
27
25
## Prerequisites
28
26
@@ -97,7 +95,7 @@ Install the "Hello World" example task when prompted. We'll use this task to tes
97
95
<CliViewRunStep />
98
96
</Steps>
99
97
100
-
## Create and deploy a new Supabase edge function
98
+
## Create and deploy a new Supabase edge function and database webhook
101
99
102
100
<Steps>
103
101
@@ -178,6 +176,12 @@ Call the hook `edge-function-hook`:
178
176
179
177
</Step>
180
178
179
+
</Steps>
180
+
181
+
## Deploy your 'Hello World' task and trigger it from your new `database-webhook` edge function
182
+
183
+
<Steps>
184
+
181
185
<Steptitle="Deploy your 'Hello World' task">
182
186
183
187
Go back to your project and deploy your `hello-world` task to [Trigger.dev cloud](https://cloud.trigger.dev).
0 commit comments