vendure-storage-rokka
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i vendure-storage-rokka

Weekly Downloads

4

Version

0.0.7

License

MIT

Unpacked Size

14.2 kB

Total Files

10

Last publish

Collaborators

  • chregu