farrow-next-server
An adapter of Next.js for farrow-http.
Installation
- npm
- Yarn
npm install farrow-next-server next farrow-http
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
- Next.js: The React Framework for Production.
- farrow-http: A Type-Friendly Web Framework.