Vana SDK - v3.5.0
    Preparing search index...

    Interface R2Config

    Configuration for R2Storage.

    interface R2Config {
        accountId?: string;
        endpoint?: string;
        accessKeyId: string;
        secretAccessKey: string;
        bucket: string;
        publicUrl?: string;
        region?: string;
    }
    Index

    Properties

    accountId?: string

    Cloudflare account ID. Used to derive the S3 endpoint when endpoint is not given.

    endpoint?: string

    Full S3 endpoint URL. Overrides accountId.

    Defaults to https://{accountId}.r2.cloudflarestorage.com.

    accessKeyId: string

    R2 access key ID.

    secretAccessKey: string

    R2 secret access key.

    bucket: string

    Bucket name.

    publicUrl?: string

    Public URL prefix used when constructing the URL returned by R2Storage.upload.

    If unset, defaults to https://{bucket}.{accountId}.r2.dev (R2's default public hostname). Set this to a custom domain bound to the bucket if you have one.

    region?: string

    S3 region. R2 expects auto; consumers can override for compatibility with other S3-compatible stores reachable through the same code path.