Skip to content

VercelClientOptions

Defined in: utils.ts:7

Options for createVercelClient() and createVercelRestClient().

optional baseUrl?: string

Defined in: utils.ts:17

Override base URL for testing. Defaults to https://api.vercel.com.


optional errors?: ErrorSink

Defined in: utils.ts:23

Reports transport failures and unexpected 5xx. Defaults to a no-op.


optional fetch?: (input, init?) => Promise<Response>

Defined in: utils.ts:19

Override fetch for testing. Defaults to globalThis.fetch.

string | URL | Request

RequestInit

Promise<Response>


optional logger?: Logger

Defined in: utils.ts:21

Structured logger for request/response diagnostics. Defaults to a no-op.


optional teamId?: string

Defined in: utils.ts:15

Team ID — appended as ?teamId= on every request. Omit for personal accounts. Required for team-owned resources (projects, deployments, env vars); without it, requests target personal account resources only. Find it in Vercel dashboard → Team Settings → General.


token: string

Defined in: utils.ts:9

Vercel API token.