Category

Storage

Version

0.0.8

Last updated

Jan 29, 2023, 18:18:21 PMa year ago
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
Copy to clipboard
prefix
is an optional path to prepend to every object.
Other keys are required.

Build your own plugins

Develop your own plugins with our API to speed up your processes.

Make your plugin available via npm for it to be shared in our Plugin Library with the broader Medusa community.