OptionalaccountCloudflare account ID. Used to derive the S3 endpoint when endpoint is not given.
OptionalendpointFull S3 endpoint URL. Overrides accountId.
Defaults to https://{accountId}.r2.cloudflarestorage.com.
R2 access key ID.
R2 secret access key.
Bucket name.
OptionalpublicPublic 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.
OptionalregionS3 region. R2 expects auto; consumers can override for compatibility with other
S3-compatible stores reachable through the same code path.
Configuration for R2Storage.