keystone-google-cloud-storage-adapter

0.0.3 • Public • Published

Google Cloud Storage adapter for KeystoneJS

This adapter is designed to use it in KeystoneJS File field.

Install

npm i keystone-google-cloud-storage-adapter --save

or

yarn add keystone-google-cloud-storage-adapter

Usage

Configure the storage adapter:

var storage = new keystone.Storage({
  adapter: require('keystone-google-cloud-storage-adapter'),
  cloudStorage: {
    keyFilename: 'gcloud_auth.json',
    path: 'uploads/',
    bucket: 'the-bucket-name',
    uploadOptions: {
      public: true
    }
  },
  schema: {
    url: true,
  },
});

Package Sidebar

Install

npm i keystone-google-cloud-storage-adapter

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

5.6 kB

Total Files

4

Last publish

Collaborators

  • frank10gm