1.0.5 • Published 5 months ago

medusa-file-cloudinary-custom v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

medusa-file-cloudinary-custom

NPM

Upload files to Cloudinary in Medusa Commerce

Options

    cloud_name: [cloudinary cloud name],
    api_key: [cloudinary api key],
    api_secret: [cloudinary api secret],
    secure: [enable secure uploads, default true],
    root_folder: [cloudinary store folder],

Usage

First, install the plugin using your preferred package manager:

yarn add medusa-file-cloudinary

Then configure your medusa-config.js to include the plugin alongside the required options:

{
    resolve: `medusa-file-cloudinary-custom`,
    options: {
        cloud_name: "YOUR_CLOUD_NAME",
        api_key: "YOUR_API_KEY",
        api_secret: "YOUR_API_SECRET",
        secure: true,
        root_folder: "YOUR_CLOUDINARY_STORE_FOLDER",
    },
},

You can find the above options in Cloudinary dashboard.

Make sure to use an environment variable for the api key and secret in a live environment.

Try it out!

Finally, run your Medusa server alongside our admin system to try out your new file service. Upon editing or creating products, you can now upload thumbnails and images, that are stored in Cloudinary.

"# medusa-file-cloudinary-custom"

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago