Skip to content

Commit 781284f

Browse files
Documentation edits made through Mintlify web editor
1 parent af5ea89 commit 781284f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

docs/guides/frameworks/supabase-edge-functions-database-webhooks.mdx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ import WorkerFailedToStartWhenRunningDevCommand from "/snippets/worker-failed-to
1818

1919
## Overview
2020

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.
2222

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.
2624

2725
## Prerequisites
2826

@@ -97,7 +95,7 @@ Install the "Hello World" example task when prompted. We'll use this task to tes
9795
<CliViewRunStep />
9896
</Steps>
9997

100-
## Create and deploy a new Supabase edge function
98+
## Create and deploy a new Supabase edge function and database webhook
10199

102100
<Steps>
103101

@@ -178,6 +176,12 @@ Call the hook `edge-function-hook`:
178176

179177
</Step>
180178

179+
</Steps>
180+
181+
## Deploy your 'Hello World' task and trigger it from your new `database-webhook` edge function
182+
183+
<Steps>
184+
181185
<Step title="Deploy your 'Hello World' task">
182186

183187
Go back to your project and deploy your `hello-world` task to [Trigger.dev cloud](https://cloud.trigger.dev).
@@ -202,7 +206,7 @@ yarn dlx trigger.dev@beta deploy
202206

203207
<Step title="Trigger your new database webhook edge function">
204208

205-
Go back to your Supabase dashboard, click on 'Table Editor' in the left-hand menu, and then click on the `skynet` table.
209+
In your Supabase dashboard, click on 'Table Editor' in the left-hand menu, and then click on the `skynet` table.
206210

207211
Click 'insert', and add a new item under `name`, with the value `Sarah Connor`.
208212

@@ -214,7 +218,7 @@ Go back to your edge function dashboard, and you should see a new run of your ed
214218

215219
Check your [cloud.trigger.dev](http://cloud.trigger.dev) dashboard and you should see a succesful `hello-world` task.
216220

217-
Congratulations, you have successfully triggered a task from a Supabase edge function using a database webhook!
221+
**Congratulations, you have successfully triggered a task from a Supabase edge function using a database webhook!**
218222

219223
</Step>
220224

0 commit comments

Comments
 (0)