Store Vendure assets on Google Cloud Storage.
npm install @pinelab/vendure-plugin-google-storage-assets
Plugin for storing Vendure assets on Google Cloud Storage
sendcloud.dev-config.ts
gcloud auth application-default login
yarn start
and go to https://localhost:3050/admin to test asset uploadsInternally this plugin uses new Storage();
to instantiate the Storage client, which uses ENV variables to
authenticate:
// By default, the client will authenticate using the service account file
// specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use
// the project specified by the GCLOUD_PROJECT environment variable. See
// https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application
https://cloud.google.com/compute/docs/tutorials/nodejs-guide