vendure-storage-rokka
v0.0.7
Published
A vendure.io storage adapter to store images on rokka.io
Downloads
9
Readme
Vendure asset storage for rokka.io
Plugin for storing Vendure images/assets on rokka.io
Very much still in alpha, the basics do work, though.
Getting started
Install the package:
yarn add vendure-storage-rokka
Add to your vendure-config.ts
import { configureRokkaAssetStorage, RokkaAssetPreviewStrategy } from 'vendure-storage-rokka'
plugins: [
AssetServerPlugin.init({
route: 'assets',
storageStrategyFactory: configureRokkaAssetStorage({
organization: process.env.ROKKA_ORGANIZATION || '',
apiKey: process.env.ROKKA_API_KEY || '',
// stackConfig: 'dynamic/resize-width-720/o-af-1' // if you want a different render stack config than the default
}),
previewStrategy: new RokkaAssetPreviewStrategy()
//...
and add your Rokka Credentials into the .env
file
Missing
- Deleting assets
- Docs how to use it on the frontend if you want to resize images...
- Try to figure out, how we could do use resizing in the admin UI
- Better docs in general ;)
- Maybe "caching" somehow the reads of sourceimages locally. They don't change by design, so could easily be done.