Interface FetchOptions

Configuration options for FetchFS.

interface FetchOptions {
    baseUrl?: string;
    index?: string | IndexData;
    requestInit?: RequestInit;
}

Properties

baseUrl?: string

Used as the URL prefix for fetched files. Default: Fetch files relative to the index.

index?: string | IndexData

URL to a file index as a JSON file or the file index object itself. Defaults to index.json.

requestInit?: RequestInit

Options to pass through to fetch calls