medusa-file-azure-blob

1.0.2 • Public • Published

 

Medusa Azure

Medusa Azure Storage File Plugin

Medusa Website | Plugin Repository

Store uploaded files to your Medusa backend on Azure Blob Storage

Medusa is released under the MIT license. PRs welcome! Discord Chat Follow @medusajs

How to Install

1. Run the following command in the directory of the Medusa backend:

npm install medusa-file-azure-blob

2. Set the following environment variables in .env:

ACCOUNT_NAME=<YOUR_ACCOUNT_NAME>
ACCOUNT_KEY=<YOUR_ACCOUNT_KEY>
CONTAINER=<YOUR_CONTAINER_NAME>

3. In medusa-config.js add the following at the end of the plugins array:

const plugins = [
  // ...
  {
    resolve: `medusa-file-azure-blob',
    options: {
        account_name: process.env.ACCOUNT_NAME,
        account_key: process.env.ACCOUNT_KEY,
        container: process.env.CONTAINER
    },
  },
]

Account Name & Key

You can get your storage account Name & Key from Access keys menu section on Azure Portal

Follow @medusajs

Test the Plugin

1. Run the following command in the directory of the Medusa backend to start the backend:

npm run start

2. Upload an image for a product using the admin dashboard or using the Admin APIs.

License

The Plugin is licensed under the MIT License.

Package Sidebar

Install

npm i medusa-file-azure-blob

Weekly Downloads

5

Version

1.0.2

License

MIT

Unpacked Size

23 kB

Total Files

8

Last publish

Collaborators

  • theartemkovtun