Skip to content

@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:

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

Options

OptionTypeDescription
cacheFunctionKeyv store.
domainsArrayList of domains to allow remote image resizing for. Optional, defaults to the value provided for publication.me.
mestringPublication URL. Used as prefix to image paths.
mountPathstringPath to image resizing endpoint. Optional, defaults to /image.