Skip to main content

farrow-next-server

An adapter of Next.js for farrow-http.

Installation

yarn add farrow-next-server next farrow-http

Usage

import { Http } from "farrow-http";
import { next } from "farrow-next-server";

const http = Http();

http.use(next());

http.listen(3000);

API

Type Signature:

const next: (options?: Partial<Options> | undefined) => NextRouterPipeline;

type NextRouterPipeline = RouterPipeline & {
app: NextServer;
};

type NextServer = ReturnType<typeof createNextServer>;

Learn more

Relative Module