TurboClientOptions
Defined in: utils.ts:7
Options for createTurboClient() and createTurboRestClient().
Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: utils.ts:11
Override base URL for testing. Defaults to https://api.vercel.com, which serves Turborepo’s Remote Cache.
errors?
Section titled “errors?”
optionalerrors?:ErrorSink
Defined in: utils.ts:17
Reports transport failures and unexpected 5xx. Defaults to a no-op.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: utils.ts:13
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: utils.ts:15
Structured logger for request/response diagnostics. Defaults to a no-op.
token:
string
Defined in: utils.ts:9
The token Turborepo sends to the remote cache: a Vercel token (TURBO_TOKEN).