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/examples/vercel-sync-env-vars.mdx
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,14 @@ This example shows how to automatically sync environment variables from your Ver
12
12
13
13
## Build configuration
14
14
15
-
To sync environment variables from your Vercel project to Trigger.dev, you just need to add this build configuration to your `trigger.config.ts` file. This extension will then automatically run every time you deploy your project.
16
-
17
-
This code syncs encrypted environment variables, filtering them based on the current environment (production, preview, or development).
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.
18
16
19
17
<Note>
20
-
You need to set the `VERCEL_ACCESS_TOKEN` and `VERCEL_PROJECT_ID` environment variables, or pass
21
-
in the token and project ID as arguments to the `vercelSyncEnvVars` build extension. You can find
22
-
/ generate the `VERCEL_ACCESS_TOKEN` in your Vercel
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
23
21
[dashboard](https://vercel.com/account/settings/tokens). Make sure the scope of the token covers
24
-
the project you want to sync.
22
+
the project with the environment variables you want to sync.
25
23
</Note>
26
24
27
25
```ts trigger.config.ts
@@ -46,7 +44,7 @@ export default defineConfig({
46
44
47
45
## Running the sync operation
48
46
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.
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