Skip to content

Commit 771581d

Browse files
committed
Added supabase-docs-cards to go at the bottom of the examples and guides
1 parent 0d13c5b commit 771581d

File tree

6 files changed

+56
-20
lines changed

6 files changed

+56
-20
lines changed

docs/examples/supabase-database-operations.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ sidebarTitle: "Supabase database operations"
44
description: "These examples demonstrate how to run basic CRUD operations on a table in a Supabase database using Trigger.dev."
55
---
66

7+
import SupabaseDocsCards from "/snippets/supabase-docs-cards.mdx";
8+
79
## Add a new user to a table in a Supabase database
810

911
This is a basic task which inserts a new row into a table from a Trigger.dev task.
@@ -191,3 +193,5 @@ To test this task in the [Trigger.dev dashboard](https://cloud.trigger.dev), you
191193
```
192194

193195
If the task completes successfully, you will see a new row in your `user_subscriptions` table with the `user_id` set to `user_12345`, the `plan` set to `pro`, and the `updated_at` timestamp updated to the current time.
196+
197+
<SupabaseDocsCards />

docs/examples/supabase-storage-upload.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ sidebarTitle: "Supabase Storage upload"
44
description: "This example demonstrates how to download a video from a URL and upload it to Supabase Storage using Trigger.dev."
55
---
66

7+
import SupabaseDocsCards from "/snippets/supabase-docs-cards.mdx";
8+
79
## Overview
810

911
This task downloads a video from a provided URL, saves it to a temporary file, and then uploads the video file to Supabase Storage using S3.
@@ -72,3 +74,5 @@ To test this task in the dashboard, you can use the following payload:
7274
"videoUrl": "<a-video-url>" // Replace <a-video-url> with the URL of the video you want to upload
7375
}
7476
```
77+
78+
<SupabaseDocsCards />

docs/guides/frameworks/supabase-edge-functions-basic.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import TriggerTaskNextjs from "/snippets/trigger-tasks-nextjs.mdx";
1515
import NextjsTroubleshootingMissingApiKey from "/snippets/nextjs-missing-api-key.mdx";
1616
import NextjsTroubleshootingButtonSyntax from "/snippets/nextjs-button-syntax.mdx";
1717
import WorkerFailedToStartWhenRunningDevCommand from "/snippets/worker-failed-to-start.mdx";
18+
import SupabaseDocsCards from "/snippets/supabase-docs-cards.mdx";
1819

1920
## Overview
2021

@@ -177,4 +178,4 @@ Check your [cloud.trigger.dev](http://cloud.trigger.dev) dashboard and you shoul
177178
</Step>
178179
</Steps>
179180

180-
<UsefulNextSteps />
181+
<SupabaseDocsCards />

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import TriggerTaskNextjs from "/snippets/trigger-tasks-nextjs.mdx";
1515
import NextjsTroubleshootingMissingApiKey from "/snippets/nextjs-missing-api-key.mdx";
1616
import NextjsTroubleshootingButtonSyntax from "/snippets/nextjs-button-syntax.mdx";
1717
import WorkerFailedToStartWhenRunningDevCommand from "/snippets/worker-failed-to-start.mdx";
18+
import SupabaseDocsCards from "/snippets/supabase-docs-cards.mdx";
1819

1920
## Overview
2021

@@ -233,4 +234,4 @@ Inside that run you will see the payload that was sent from the database webhook
233234

234235
</Steps>
235236

236-
<UsefulNextSteps />
237+
<SupabaseDocsCards />
Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
---
2-
title: "Supabase guides"
2+
title: "Supabase overview"
33
sidebarTitle: "Overview"
4-
description: "Guides for using Supabase with Trigger.dev."
4+
description: "Guides and examples for using Supabase with Trigger.dev."
55
---
66

7-
<CardGroup cols={2}>
8-
<Card
9-
title="Edge function hello world"
10-
icon="bolt"
11-
href="/guides/frameworks/supabase-edge-functions-basic"
12-
>
13-
Learn how to trigger a task from a Supabase edge function when a URL is visited.
14-
</Card>
15-
<Card
16-
title="Edge function database webhooks"
17-
icon="bolt"
18-
href="/guides/frameworks/supabase-edge-functions-database-webhooks"
19-
>
20-
Learn how to trigger a task from a Supabase edge function when an event occurs in your database.
21-
</Card>
22-
</CardGroup>
7+
import SupabaseDocsCards from "/snippets/supabase-docs-cards.mdx";
8+
9+
<SupabaseDocsCards />

docs/snippets/supabase-docs-cards.mdx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## Learn more about Supabase and Trigger.dev
2+
3+
### Full walkthrough guides from development to deployment
4+
5+
<CardGroup cols={2}>
6+
<Card
7+
title="Edge function hello world"
8+
icon="bolt"
9+
href="/guides/frameworks/supabase-edge-functions-basic"
10+
>
11+
Learn how to trigger a task from a Supabase edge function when a URL is visited.
12+
</Card>
13+
<Card
14+
title="Edge function database webhooks"
15+
icon="bolt"
16+
href="/guides/frameworks/supabase-edge-functions-database-webhooks"
17+
>
18+
Learn how to trigger a task from a Supabase edge function when an event occurs in your database.
19+
</Card>
20+
</CardGroup>
21+
22+
### Task examples with code you can copy and paste
23+
24+
<CardGroup title="t" cols={2}>
25+
<Card
26+
title="Supabase database operations"
27+
icon="bolt"
28+
href="/guides/frameworks/supabase-edge-functions-database-webhooks"
29+
>
30+
Run basic CRUD operations on a table in a Supabase database using Trigger.dev.
31+
</Card>
32+
<Card
33+
title="Supabase Storage upload"
34+
icon="bolt"
35+
href="/guides/frameworks/supabase-edge-functions-basic"
36+
>
37+
Download a video from a URL and upload it to Supabase Storage using S3.
38+
</Card>
39+
</CardGroup>

0 commit comments

Comments
 (0)