@basetenlabs/client - v0.2.0
    Preparing search index...

    Interface ExternalDataItem

    A piece of remote data, to be made available to the Truss at serving time.

    Remote data is downloaded and stored under Truss's data directory. Care should be taken to avoid conflicts. This will get precedence if there's overlap.

    interface ExternalDataItem {
        backend?: string;
        local_data_path: string;
        name?: string | null;
        url: string;
        [k: string]: unknown;
    }

    Indexable

    • [k: string]: unknown
    Index
    backend?: string

    Download backend to use. Defaults to 'http_public'.

    local_data_path: string

    Path relative to the data directory where the remote file will be downloaded.

    name?: string | null

    Optional name for the download. Path relative to data directory.

    url: string

    URL to download the data from. Currently only files are allowed.