medusa-file-azure-blob
v1.0.2
Published
Azure Blob storage connector for Medusa
Downloads
20
Maintainers
Readme
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
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.