@frogbotai/storage-r2
v0.30.0
Published
Cloudflare R2 storage adapter for FrogBot.
Readme
@frogbotai/storage-r2
Cloudflare R2 storage adapter for FrogBot.
Installation
pnpm add @frogbotai/storage-r2Usage
import { buildConfig } from 'frogbot';
import { r2Storage } from '@frogbotai/storage-r2';
export default buildConfig({
plugins: [
r2Storage({
bucket: env.R2_BUCKET,
}),
],
// ...rest of config
});The adapter stores files for the collection marked file: true, if any, and chat assets automatically. List your own upload collections in collections, for example collections: { media: true }. See Storage Adapters for every option.
