VercelClientOptions
Defined in: clients/vercel-client/dist/index.d.mts:4
Options for createVercelClient() and createVercelRestClient().
Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: clients/vercel-client/dist/index.d.mts:14
Override base URL for testing. Defaults to https://api.vercel.com.
errors?
Section titled “errors?”
optionalerrors?:ErrorSink
Defined in: clients/vercel-client/dist/index.d.mts:20
Reports transport failures and unexpected 5xx. Defaults to a no-op.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: clients/vercel-client/dist/index.d.mts:16
Override fetch for testing. Defaults to globalThis.fetch.
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
logger?
Section titled “logger?”
optionallogger?:Logger
Defined in: clients/vercel-client/dist/index.d.mts:18
Structured logger for request/response diagnostics. Defaults to a no-op.
teamId?
Section titled “teamId?”
optionalteamId?:string
Defined in: clients/vercel-client/dist/index.d.mts:12
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: clients/vercel-client/dist/index.d.mts:6
Vercel API token.