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
The `syncNeonEnvVars` build extension syncs environment variables from your Neon database project to Trigger.dev. It automatically detects branches and builds the appropriate database connection strings for your environment.
140
147
141
-
<Note>
142
-
You need to set the `NEON_ACCESS_TOKEN` and `NEON_PROJECT_ID` environment variables, or pass them
143
-
as arguments to the `syncNeonEnvVars` build extension. You can generate a `NEON_ACCESS_TOKEN` in
144
-
your Neon [dashboard](https://console.neon.tech/app/settings/api-keys).
145
-
</Note>
148
+
<AccordionGroup>
149
+
<Accordiontitle="Setting up authentication">
150
+
You need to set the `NEON_ACCESS_TOKEN` and `NEON_PROJECT_ID` environment variables, or pass them
151
+
as arguments to the `syncNeonEnvVars` build extension.
146
152
147
-
<Note>
148
-
When running the build from a Vercel environment (determined by checking if the `VERCEL`
149
-
environment variable is present), this extension is skipped entirely. This is because Neon's
150
-
Vercel integration already handles environment variable synchronization in Vercel environments.
151
-
</Note>
153
+
You can generate a `NEON_ACCESS_TOKEN` in your Neon [dashboard](https://console.neon.tech/app/settings/api-keys).
154
+
</Accordion>
152
155
153
-
<Note>
154
-
If you have the Neon database Vercel integration installed and are running builds outside of the
155
-
Vercel environment, we recommend using `syncNeonEnvVars` in addition to `syncVercelEnvVars` for your
156
-
database environment variables. This ensures that the correct database connection strings are used for your
157
-
selected environment and current branch, as `syncVercelEnvVars` may not accurately reflect
158
-
branch-specific database credentials when run locally.
159
-
</Note>
156
+
<Accordiontitle="Running in Vercel environment">
157
+
When running the build from a Vercel environment (determined by checking if the `VERCEL`
158
+
environment variable is present), this extension is skipped entirely.
159
+
160
+
This is because Neon's Vercel integration already handles environment variable synchronization in Vercel environments.
161
+
</Accordion>
162
+
163
+
<Accordiontitle="Using with Neon database Vercel integration">
164
+
If you have the Neon database Vercel integration installed and are running builds outside of the
165
+
Vercel environment, we recommend using `syncNeonEnvVars` in addition to `syncVercelEnvVars` for your
166
+
database environment variables.
167
+
168
+
This ensures that the correct database connection strings are used for your selected environment and current branch, as `syncVercelEnvVars` may not accurately reflect branch-specific database credentials when run locally.
169
+
</Accordion>
170
+
</AccordionGroup>
160
171
161
172
<Note>
162
173
This extension is skipped for `prod` environments. It is designed to sync branch-specific
0 commit comments