1.1.1 • Published 1 year ago

@vicecommerce/medusa-file-r2 v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago
npm i @vicecommerce/medusa-file-r2
{
  resolve: "@vicecommerce/medusa-file-r2",
  options: {
    account_id: process.env.R2_ACCOUNT_ID,
    bucket: process.env.R2_BUCKET_NAME,
    public_url: process.env.R2_PUBLIC_URL,
    access_key_id: process.env.R2_ACCESS_KEY,
    secret_access_key: process.env.R2_SECRET_KEY,
  },
}

Make sure to replace the values in the options object with the appropriate environment variables containing your Cloudflare R2 credentials.

For detailed instructions on obtaining your Cloudflare R2 credentials, please refer to the official Cloudflare R2 documentation.

For example, when using Medusa to manage product images, the images will be uploaded to your specified Cloudflare R2 bucket.