@indiekit/endpoint-image

1.0.0-beta.20 • Public • Published

@indiekit/endpoint-image

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

Installation

npm install @indiekit/endpoint-image

[!NOTE] This package is installed alongside @indiekit/indiekit

Usage

To customise the behaviour of this plug-in, add @indiekit/endpoint-image to your configuration, specifying options as required:

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

Options

Option Type Description
cache Function Keyv store.
me string Publication URL. Used as prefix to image paths.
mountPath string Path to image resizing endpoint. Optional, defaults to /image.

Package Sidebar

Install

npm i @indiekit/endpoint-image

Weekly Downloads

125

Version

1.0.0-beta.20

License

MIT

Unpacked Size

4.18 kB

Total Files

5

Last publish

Collaborators

  • paulrobertlloyd