Skip to content

rokka-io/vendure-storage-rokka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.