Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/guides/examples/vercel-sync-env-vars.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ description: "This example demonstrates how to sync environment variables from y

import VercelDocsCards from "/snippets/vercel-docs-cards.mdx";

<Warning>
**`syncVercelEnvVars` is deprecated.** If you are using the [Vercel
integration](/vercel-integration), do not use this extension — the integration handles environment
variable syncing natively. Using both together can cause env vars to be incorrectly populated.
</Warning>

## Build configuration

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.
Expand Down
6 changes: 6 additions & 0 deletions docs/vercel-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ The following variables are excluded from the Vercel → Trigger.dev sync:

You can control sync behavior per-variable from your project's Vercel settings. Deselecting a variable prevents its value from being updated during future syncs.

<Warning>
If you are experiencing incorrectly populated environment variables, check that you are not using
the `syncVercelEnvVars` build extension in your `trigger.config.ts`. This extension is deprecated
and conflicts with the Vercel integration's built-in env var syncing. Remove it if present.
</Warning>

### Supabase and Neon database branching

If you use [Supabase Branching](https://supabase.com/docs/guides/deployment/branching) or [Neon Database Branching](https://neon.tech/docs/guides/branching-intro) for preview environments, disable syncing for database env vars on the Environment Variables page and use the [syncSupabaseEnvVars](/config/extensions/syncEnvVars#syncsupabaseenvvars) or [syncNeonEnvVars](/config/extensions/syncEnvVars#syncneonenvvars) build extensions instead. These extensions automatically resolve the correct branch-specific credentials at build time.
Expand Down
Loading