Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

@vikejs/fastify

Fastify server adapter for Vike.

Installation

npm install @vikejs/fastify fastify

Usage

import Fastify from 'fastify'
import vike from '@vikejs/fastify'

const app = Fastify()

await vike(app)

await app.listen({ port: 3000 })

You can pass additional universal middlewares as the second argument:

await vike(app, [myMiddleware()])

This package also re-exports everything from @universal-middleware/fastify.