> ## 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 domain updated

> Start an automation when Vercel updates project-domain settings.

`onVercelProjectDomainUpdated` emits when a project domain's name, redirect, status code, or Git branch changes.

```ts automations/watch-updated-vercel-project-domains.automation.ts theme={null}
import { automation } from "automate.ax"
import { onVercelProjectDomainUpdated } from "automate.ax/vercel"

export default automation("Watch updated Vercel project domains", () => {
  const event = onVercelProjectDomainUpdated()
  event.transform(({ payload }) => ({
    next: payload.next,
    previous: payload.previous,
    projectId: payload.project.id,
  }))
})
```

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

## Trigger data

Returns `type: "project.domain.updated"`. `payload.previous` and `payload.next` each contain `domain`, nullable `gitBranch`, nullable `redirect`, and nullable `redirectStatusCode`; `payload.project` identifies the owning project.
