@samveys/fastify
Fastify owns the server lifecycle, the Samveys kernel owns every request
import { fastify } from '@samveys/fastify'
Function (1)
fastify
Function
HTTP driver on Fastify. Fastify supplies the server lifecycle (`serverFactory`, `listen`, `close`); every request is handed untouched to `kernel.handleNode`, so Fastify never parses a body.
function fastify(options?: FastifyDriverOptions): HttpDriver<FastifyInstance>;
Exported from packages/fastify/src/driver.ts
Interface (1)
FastifyDriverOptions
Interface
No documentation comment.
interface FastifyDriverOptions {
/**
* Runs on the Fastify instance before it starts listening (register plugins, hooks, decorators).
* Requests never reach Fastify's router: the Samveys kernel owns routing, bodies, limits and errors.
*/
readonly configure?: (instance: FastifyInstance) => void | Promise<void>;
Exported from packages/fastify/src/driver.ts