1.0.0-beta.10 • Published 1 month ago

@indiekit/endpoint-image v1.0.0-beta.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@indiekit/endpoint-image

Image resizing endpoint for Indiekit. Adds real-time image processing routes that can be used by your publication.

Installation

npm i @indiekit/endpoint-image

Usage

Add @indiekit/endpoint-image to your list of plug-ins, specifying options as required:

{
  "plugins": ["@indiekit/endpoint-image"],
  "@indiekit/endpoint-image": {
    "mountPath": "/bild", // de-DE
  },
}

Options

OptionTypeDescription
cacheFunctionKeyv store.
mestringPublication URL. Used as prefix to image paths.
mountPathstringPath to image resizing endpoint. Optional, defaults to /image.