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
* Added sync env vars docs example
* Added links in the config + deploy files
* Updated copy
* Added vercel docs cards and added them to all of the relevant docs pages
* Added sync env vars to the intro page
* Added automatically sync env vars section to nextjs guide
* Added ‘Manually’
* Removed code block and updated title
* updated formatting and added vercelsyncenvvars to the config file
* Added missing comment
* Updated imports to /core
* Added sync env var docs link and note
* Improved the VERCEL_ACCESS_TOKEN note
* Added link to vercel
* Updated docs and improved formatting
* Copy tweaks
* Added space
* Updated deploy docs
@@ -389,6 +406,7 @@ import { prismaExtension } from "@trigger.dev/build/extensions/prisma";
389
406
390
407
exportdefaultdefineConfig({
391
408
project: "<project ref>",
409
+
// Your other config settings...
392
410
build: {
393
411
extensions: [
394
412
prismaExtension({
@@ -431,6 +449,7 @@ import { prismaExtension } from "@trigger.dev/build/extensions/prisma";
431
449
432
450
exportdefaultdefineConfig({
433
451
project: "<project ref>",
452
+
// Your other config settings...
434
453
build: {
435
454
extensions: [
436
455
prismaExtension({
@@ -451,6 +470,7 @@ import { defineConfig } from "@trigger.dev/sdk/v3";
451
470
452
471
exportdefaultdefineConfig({
453
472
project: "<project ref>",
473
+
// Your other config settings...
454
474
build: {
455
475
extensions: [
456
476
prismaExtension({
@@ -473,6 +493,43 @@ These environment variables are only used during the build process and are not e
473
493
474
494
The `syncEnvVars` build extension replaces the deprecated `resolveEnvVars` export. Check out our [syncEnvVars documentation](/deploy-environment-variables#sync-env-vars-from-another-service) for more information.
Previously, we installed [Audio Waveform](https://github.com/bbc/audiowaveform) in the build image. That's been moved to a build extension:
@@ -482,7 +539,8 @@ import { defineConfig } from "@trigger.dev/sdk/v3";
To sync environment variables from your Vercel projects to Trigger.dev, you can use our build extension. Check out our [syncing environment variables from Vercel guide](/guides/examples/vercel-sync-env-vars).
129
+
126
130
#### Deploy
127
131
128
132
When you run the [CLI deploy command](/cli-deploy) directly or using [GitHub Actions](/github-actions) it will sync the environment variables from [Infisical](https://infisical.com) to Trigger.dev. This means they'll appear on the Environment Variables page so you can confirm that it's worked.
The [Vercel AI SDK](https://www.npmjs.com/package/ai) is a simple way to use AI models from many different providers, including OpenAI, Microsoft Azure, Google Generative AI, Anthropic, Amazon Bedrock, Groq, Perplexity and [more](https://sdk.vercel.ai/providers/ai-sdk-providers).
@@ -51,3 +53,5 @@ To test this task in the dashboard, you can use the following payload:
This example shows how to automatically sync environment variables from your Vercel project to Trigger.dev.
12
+
13
+
## Build configuration
14
+
15
+
To sync environment variables, you just need to add our build extension to your `trigger.config.ts` file. This extension will then automatically run every time you deploy your Trigger.dev project.
16
+
17
+
<Note>
18
+
You need to set the `VERCEL_ACCESS_TOKEN` and `VERCEL_PROJECT_ID` environment variables in the
19
+
Trigger.dev dashboard, or pass in the token and project ID as arguments to the `vercelSyncEnvVars`
20
+
build extension. You can find / generate the `VERCEL_ACCESS_TOKEN` in your Vercel
21
+
[dashboard](https://vercel.com/account/settings/tokens). Make sure the scope of the token covers
22
+
the project with the environment variables you want to sync.
[Build extensions](/config/config-file#extensions) allow you to hook into the build system and
41
+
customize the build process or the resulting bundle and container image (in the case of
42
+
deploying). You can use pre-built extensions or create your own.
43
+
</Note>
44
+
45
+
## Running the sync operation
46
+
47
+
To sync the environment variables, all you need to do is run our `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.
0 commit comments