CheckSetupOptions
Defined in: setup.ts:64
Properties
Section titled “Properties”apiBase
Section titled “apiBase”apiBase:
string
Defined in: setup.ts:65
apiBaseProvenance?
Section titled “apiBaseProvenance?”
optionalapiBaseProvenance?:"explicit"|"key"
Defined in: setup.ts:76
Where apiBase came from; see FetchFragmentsOptions.apiBaseProvenance. Defaults to “explicit”.
fetchImpl?
Section titled “fetchImpl?”
optionalfetchImpl?: (input,init?) =>Promise<Response>
Defined in: setup.ts:85
Test seam; defaults to the platform fetch.
Parameters
Section titled “Parameters”URL | RequestInfo
RequestInit
Returns
Section titled “Returns”Promise<Response>
organizationId?
Section titled “organizationId?”
optionalorganizationId?:string
Defined in: setup.ts:69
When given, it must match the key’s organization.
origin?
Section titled “origin?”
optionalorigin?:string
Defined in: setup.ts:74
The origin to check, for example https://shop.example. Without it the
edge reads the request’s Origin header (a browser sends its own page’s).
publishableKey?
Section titled “publishableKey?”
optionalpublishableKey?:string
Defined in: setup.ts:67
st_pk_…. Sent as Authorization: Bearer <key>.
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: setup.ts:77
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: setup.ts:83
How long the check waits for the whole answer, in milliseconds. Default
10000. Past it the request is stopped and the result is not reached,
with reason: "timeout". 0 or Infinity turns the deadline off.