Skip to content

Commit 2335d26

Browse files
committed
Updated docs and improved formatting
1 parent bcc330d commit 2335d26

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

docs/guides/examples/vercel-sync-env-vars.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default defineConfig({
4646

4747
## Running the sync operation
4848

49-
To run the sync operation, simply run the `deploy` command. You should see some output in the console indicating that the environment variables have been synced, and they should now be available in the Trigger.dev dashboard.
49+
To sync the environment variables, all you need to do is run the `deploy` command. You should see some output in the console indicating that the environment variables have been synced, and they should now be available in your Trigger.dev dashboard.
5050

5151
```bash
5252
npx trigger.dev@latest deploy

docs/guides/frameworks/nextjs.mdx

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,6 @@ export default defineConfig({
281281

282282
## Troubleshooting & extra resources
283283

284-
<NextjsTroubleshootingMissingApiKey/>
285-
<NextjsTroubleshootingButtonSyntax/>
286-
<WorkerFailedToStartWhenRunningDevCommand/>
287-
288-
<VercelDocsCards />
289-
290284
### Revalidation from your Trigger.dev tasks
291285

292286
[Revalidation](https://vercel.com/docs/incremental-static-regeneration/quickstart#on-demand-revalidation) allows you to purge the cache for an ISR route. To revalidate an ISR route from a Trigger.dev task, you have to set up a handler for the `revalidate` event. This is an API route that you can add to your Next.js app.
@@ -431,14 +425,9 @@ You can test your revalidation task in the Trigger.dev dashboard on the testing
431425
}
432426
```
433427

434-
## Additional resources for Next.js
435-
436-
<Card
437-
title="Next.js - triggering tasks using webhooks"
438-
icon="N"
439-
href="/guides/frameworks/nextjs-webhooks"
440-
>
441-
How to create a webhook handler in a Next.js app, and trigger a task from it.
442-
</Card>
428+
<NextjsTroubleshootingMissingApiKey/>
429+
<NextjsTroubleshootingButtonSyntax/>
430+
<WorkerFailedToStartWhenRunningDevCommand/>
443431

432+
<VercelDocsCards />
444433
<UsefulNextSteps />

docs/guides/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ Tasks you can copy and paste to get started with Trigger.dev. They can all be ex
5454
| [Sharp image processing](/guides/examples/sharp-image-processing) | Use Sharp to process an image and save it to Cloudflare R2. |
5555
| [Supabase database operations](/guides/examples/supabase-database-operations) | Run basic CRUD operations on a table in a Supabase database using Trigger.dev. |
5656
| [Supabase Storage upload](/guides/examples/supabase-storage-upload) | Download a video from a URL and upload it to Supabase Storage using S3. |
57-
| [Vercel sync environment variables](/guides/examples/vercel-sync-env-vars) | Automatically sync environment variables from your Vercel projects to Trigger.dev. |
5857
| [Vercel AI SDK](/guides/examples/vercel-ai-sdk) | Use Vercel AI SDK to generate text using OpenAI. |
58+
| [Vercel sync environment variables](/guides/examples/vercel-sync-env-vars) | Automatically sync environment variables from your Vercel projects to Trigger.dev. |
5959

6060
<Note>
6161
If you would like to see a guide for your framework, or an example task for your use case, please

docs/snippets/vercel-docs-cards.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</Card>
1717
</CardGroup>
1818

19-
### Task examples with code you can copy and paste
19+
### Task examples
2020

2121
<CardGroup cols={2}>
2222
<Card

0 commit comments

Comments
 (0)