interface R2StoreConfig {
    account_id: string;
    bucket_name: string;
    bucket_prefix?: string;
    credentials: Credentials;
    ignore_filename?: boolean;
    log?: Log;
    public_base_url: string;
}

Properties

account_id: string

You Cloudflare account ID.

bucket_name: string

The name of your Cloudflare R2 bucket.

bucket_prefix?: string

The base path on the bucket where you want to upload files to (e.g. media/).

credentials: Credentials
ignore_filename?: boolean
log?: Log
public_base_url: string

The base URL at which your files will be publicly accessible.