> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# On Vercel project environment variable event

> Start an automation when a Vercel project environment variable changes.

`onVercelProjectEnvironmentVariableEvent` is the broad environment-variable webhook trigger. It emits creation, update, and deletion events without exposing secret values. Prefer a specific environment-variable trigger when the automation handles one operation.

```ts automations/audit-vercel-environment-variables.automation.ts theme={null}
import { automation } from "automate.ax"
import { onVercelProjectEnvironmentVariableEvent } from "automate.ax/vercel"

export default automation("Audit Vercel environment variables", () => {
  const event = onVercelProjectEnvironmentVariableEvent()
  event.transform(({ payload, type }) => ({
    environmentVariableId: payload.envVarId,
    projectId: payload.projectId,
    type,
  }))
})
```

Optional static `account` defaults to the project's Vercel binding and must use OAuth.

## Trigger data

The event `type` is `project.env-variable.created`, `project.env-variable.updated`, or `project.env-variable.deleted`. Vercel sends project and variable IDs, the owning team or user, and provider metadata; it does not send the variable value.
