medusa-file-cloudflare-r2
v0.0.8
Published
A Medusa plugin to interface with Cloudflare R2
Downloads
22
Maintainers
Readme
A simple plugin to use Cloudflare R2 as the storage provider for Medusa.
npm i medusa-file-cloudflare-r2
{
resolve: "medusa-file-cloudflare-r2",
options: {
public_url: process.env.R2_PUBLIC_URL,
s3_endpoint: process.env.R2_S3_ENDPOINT,
bucket: process.env.R2_BUCKET_NAME,
prefix: process.env.R2_PREFIX,
access_key_id: process.env.R2_ACCESS_KEY,
secret_access_key: process.env.R2_SECRET_KEY,
},
}
Where prefix
is an optional path to prepend to every object.
Other keys are required.