🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

vendure-storage-rokka

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vendure-storage-rokka

A vendure.io storage adapter to store images on rokka.io

latest
npmnpm
Version
0.0.7
Version published
Weekly downloads
8
-92.52%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 26 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts