interface R2StorageArm
Since 0.2.0

Wires an R2 bucket up as the application's IStorage under CAPABILITIES.STORAGE.

Properties

readonly
binding: string

The R2 bucket binding name from wrangler.toml.

readonly
optional
name: string

Instance name. 'default' (the default) claims the bare storage token; anything else derives storage.<name>.

readonly
optional
prefix: string

Prefix applied to every object key.

Usage

import { type R2StorageArm } from "cloudflare-plugin/src/index.ts";