Any environment variables used in your tasks need to be added so the deployed code will run successfully.
process.env.MY_ENV_VAR.
We deploy your tasks and scale them up and down when they are triggered. So any environment variables you use in your tasks need to accessible to us so your code will run successfully.
Go to the Environment Variables page

Add your environment variables

Press the action button on a variable

Press edit

Press the action button on a variable

Press delete

| Function | Description |
|---|---|
| envvars.list() | List all environment variables |
| envvars.upload() | Upload multiple env vars. You can override existing values. |
| envvars.create() | Create a new environment variable |
| envvars.retrieve() | Retrieve an environment variable |
| envvars.update() | Update a single environment variable |
| envvars.del() | Delete a single environment variable |
syncEnvVars build extension in your trigger.config file.
syncEnvVars build extension, you should first install the @trigger.dev/build
package into your devDependencies.process.env.INFISICAL_CLIENT_ID, process.env.INFISICAL_CLIENT_SECRET and
process.env.INFISICAL_PROJECT_ID will need to be supplied to the deploy CLI command. You can
do this via the --env-file .env flag or by setting them as environment variables in your
terminal.syncEnvVars does not have any effect when running the dev command locally. If you want to inject environment variables from another service into your local environment you can do so via a .env file or just supplying them as environment variables in your terminal. Most services will have a CLI tool that allows you to run a command with environment variables set:
Convert the Google credential file to base64
Set up the environment variable in Trigger.dev
Use the environment variable in your code
Use the client in your code
client object to make authenticated requests to Google APIs