1.3.4 • Published 10 months ago

medusa-file-gcp v1.3.4

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

MEDUSA FILE GCP

  • This plugin is used to upload files to Google Cloud Storage using aws-sdk so it not limited to GCP.
  • The code is not complete because i am to lazy to do it. The code is based only have the function to upload files to GCP and does not inplemented other method like delete file,... Feel free to contribute to this repo.

Installation

npm install medusa-file-gcp
yarn add medusa-file-gcp

Usage

Required environment variables

process.env.S3_ENDPOINT="storage.googleapis.com"
process.env.S3_KEY="your-key"
process.env.S3_SECRET="your-secret"
process.env.S3_BUCKET="your-bucket"

Configuration

const plugins = [
  // ...
  {
    resolve: `medusa-file-gcp`,
  },
]