Skip to content

CheckSetupOptions

Defined in: setup.ts:64

apiBase: string

Defined in: setup.ts:65


optional apiBaseProvenance?: "explicit" | "key"

Defined in: setup.ts:76

Where apiBase came from; see FetchFragmentsOptions.apiBaseProvenance. Defaults to “explicit”.


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

Defined in: setup.ts:85

Test seam; defaults to the platform fetch.

MDN Reference

URL | RequestInfo

RequestInit

Promise<Response>


optional organizationId?: string

Defined in: setup.ts:69

When given, it must match the key’s organization.


optional origin?: 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).


optional publishableKey?: string

Defined in: setup.ts:67

st_pk_…. Sent as Authorization: Bearer <key>.


optional signal?: AbortSignal

Defined in: setup.ts:77


optional timeoutMs?: 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.