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
@@ -242,55 +244,9 @@ Here are the steps to trigger your task in the Next.js App and Pages router and
242
244
243
245
</Tabs>
244
246
245
-
## Add your environment variables (optional)
247
+
<AddEnvironmentVariables/>
246
248
247
-
If you have any environment variables in your tasks, be sure to add them in the dashboard so deployed code runs successfully. In Node.js, these environment variables are accessed in your code using `process.env.MY_ENV_VAR`.
248
-
249
-
In the sidebar select the "Environment Variables" page, then press the "New environment variable"
You can add values for your local dev environment, staging and prod. 
254
-
255
-
You can also add environment variables in code by following the steps on the [Environment Variables page](/deploy-environment-variables#in-your-code).
256
-
257
-
## Deploying your task in Next.js
258
-
259
-
For this guide, we'll manually deploy your task by running the [CLI deploy command](/cli-deploy) below. Other ways to deploy are listed in the next section.
260
-
261
-
<CodeGroup>
262
-
263
-
```bash npm
264
-
npx trigger.dev@latest deploy
265
-
```
266
-
267
-
```bash pnpm
268
-
pnpm dlx trigger.dev@latest deploy
269
-
```
270
-
271
-
```bash yarn
272
-
yarn dlx trigger.dev@latest deploy
273
-
```
274
-
275
-
</CodeGroup>
276
-
277
-
### Other ways to deploy
278
-
279
-
<Tabs>
280
-
281
-
<Tabtitle="GitHub Actions">
282
-
283
-
Use GitHub Actions to automatically deploy your tasks whenever new code is pushed and when the `trigger` directory has changes in it. Follow [this guide](/github-actions) to set up GitHub Actions.
284
-
285
-
</Tab>
286
-
287
-
<Tabtitle="Vercel Integration">
288
-
289
-
We're working on adding an official [Vercel integration](/vercel-integration) which you can follow the progress of [here](https://feedback.trigger.dev/p/vercel-integration-3).
0 commit comments