0.0.7 • Published 1 year ago

vendure-storage-rokka v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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.
0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

2 years ago

0.0.1

2 years ago