2.0.0 • Published 7 months ago

@ableron/fastify v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@ableron/fastify

Build Status npm version Node.js Version

Fastify Middleware for Ableron Distributed Server Side UI Composition.

Installation

npm i @ableron/fastify

Usage

import Fastify from 'fastify';
import ableron from '@ableron/fastify';
const app = Fastify({ logger: true });

app.register(ableron, {
  ableron: {
    // set optional config
    statsAppendToContent: true,

    // set optional logger
    logger: app.log
  }
});

app.listen({ port: 3000, host: '0.0.0.0' });

Configuration

Configuration options see @ableron/ableron