Next.js + Inferno + TypeScript
Use Inferno 🔥 with Next.js and TypeScript to get even faster ⚡️ rendering.
Installation
npm install --save next-inferno-typescript inferno inferno-compat inferno-clone-vnode inferno-create-class inferno-create-element
or
yarn add next-inferno-typescript inferno inferno-compat inferno-clone-vnode inferno-create-class inferno-create-element
Usage
@TODO
Create a next.config.js
in your project
// next.config.jsconst withInferno = moduleexports =
Then create a server.js
// server.jsconst createServer = const next = const app = const handle = appconst port = processenvPORT || 3000 app
Then add or change "scripts" section of your package.json
:
..."scripts": ,...
Optionally you can add your custom Next.js configuration as parameter
// next.config.jsconst withInferno = moduleexports =