1.5.0 • Published 4 months ago

@ableron/express v1.5.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

@ableron/express

Build Status npm version Node.js Version

Express Middleware for Ableron Server Side UI Composition

Installation

npm i @ableron/express

Usage

import express from 'express';
import ableron from '@ableron/express';

const app = express();

app.use(
  ableron(
    // custom settings (optional)
    {
      fragmentRequestTimeoutMillis: 5000,
      fragmentRequestHeadersToPass: ['X-ACME-Test-Groups', 'X-Correlation-ID'],
      cacheVaryByRequestHeaders: ['X-ACME-Test-Groups'],
      statsAppendToContent: true
      // ...
    },
    // custom logger (optional). If no logger is provided, no logging happens at all
    yourLogger() || console
  )
);

Configuration

Configuration options see @ableron/ableron

1.5.0

4 months ago

1.4.0

4 months ago

1.4.0-alpha.1

4 months ago

1.4.0-alpha.2

4 months ago

1.3.0

6 months ago

1.2.1

6 months ago

1.2.0

6 months ago

1.1.0

6 months ago

1.0.0

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

7 months ago

0.0.1

7 months ago