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/sequin.mdx
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,7 @@ icon: "database"
9
9
10
10
Often, task runs coincide with database changes. For instance, you might want to use a Trigger.dev task to generate an embedding for each post in your database:
11
11
12
-
<Frame>
13
-
<imgsrc="/images/sequin-intro.svg"alt="Sequin and Trigger.dev Overview" />
14
-
</Frame>
12
+
<imgsrc="/images/sequin-intro.png"alt="Sequin and Trigger.dev Overview" />
15
13
16
14
In this guide, you'll learn how to use Sequin to trigger Trigger.dev tasks from database changes.
17
15
@@ -119,7 +117,7 @@ Start by creating a new Trigger.dev task that takes in a Sequin change event as
119
117
```
120
118
</CodeGroup>
121
119
122
-
This task takes in a Sequin record event, creates an embedding, and then uppserts the embedding into a `post_embeddings` table.
120
+
This task takes in a Sequin record event, creates an embedding, and then upserts the embedding into a `post_embeddings` table.
123
121
</Step>
124
122
<Steptitle="Add the task to your Trigger.dev project">
125
123
Register the `create-embedding-for-post` task to your Trigger.dev cloud project by running the following command:
@@ -184,7 +182,7 @@ This guide covers how to setup an API endpoint using the Next.js App Router. You
184
182
DATABASE_URL=postgresql://
185
183
```
186
184
187
-
The `SEQUIN_WEBHOOK_SECRET` ensures that only Sequin can access your APIendpoint.
185
+
The `SEQUIN_WEBHOOK_SECRET` ensures that only Sequin can access your API endpoint.
188
186
189
187
The `TRIGGER_SECRET_KEY` is used to authenticate requests to Trigger.dev and can be found in the **API keys** tab of the Trigger.dev dashboard.
190
188
@@ -205,7 +203,7 @@ You'll now configure Sequin to send every row in your `posts` table to your Trig
205
203
1. Login to your Sequin account and click the **Add New Database** button.
206
204
2. Enter the connection details for your Postgres database.
207
205
<Info>
208
-
If you need to connect to a local dev database, flip the **use localhost** switch and follow the instructions to create a tunnel using the [Sequin CLI](/cli).
206
+
If you need to connect to a local dev database, flip the **use localhost** switch and follow the instructions to create a tunnel using the [Sequin CLI](https://sequinstream.com/docs/cli).
209
207
</Info>
210
208
3. Follow the instructions to create a publication and a replication slot by running two SQL commands in your database:
211
209
@@ -219,14 +217,14 @@ You'll now configure Sequin to send every row in your `posts` table to your Trig
219
217
Sequin will connect to your database and ensure that it's configured properly.
220
218
221
219
<Note>
222
-
If you need step-by-step connection instructions to connect Sequin to your database, check out our [quickstart guide](/quickstart).
220
+
If you need step-by-step connection instructions to connect Sequin to your database, check out our [quickstart guide](https://sequinstream.com/docs/quickstart).
223
221
</Note>
224
222
</Step>
225
223
<Steptitle="Tunnel to your local endpoint">
226
224
Now, create a tunnel to your local endpoint so Sequin can deliver change payloads to your local API:
227
225
228
226
1. In the Sequin console, open the **HTTP Endpoint** tab and click the **Create HTTP Endpoint** button.
229
-
2. Enter a name for your endpoint (i.e. `local_endpoint`) and flip the **Use localhost** switch. Follow the instructions in the Sequin console to [install the Sequin CLI](/cli), then run:
227
+
2. Enter a name for your endpoint (i.e. `local_endpoint`) and flip the **Use localhost** switch. Follow the instructions in the Sequin console to [install the Sequin CLI](https://sequinstream.com/docs/cli), then run:
230
228
231
229
```bash
232
230
sequin tunnel --ports=3001:local_endpoint
@@ -297,7 +295,7 @@ You'll now configure Sequin to send every row in your `posts` table to your Trig
297
295
```
298
296
</Step>
299
297
<Steptitle="Observe the task run in the Trigger.dev dashboard">
300
-
Finally, in the Trigger.dev dashboard, navigate to the [**Runs**](https://trigger.dev/runs) tab and confirm that the task run completed successfully:
298
+
Finally, in the [**Trigger.dev dashboard**](https://cloud.trigger.dev/), navigate to the Runs page and confirm that the task run completed successfully:
0 commit comments