0.0.1 • Published 2 years ago

fastify-remix v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

fastify-remix

This is an early attempt at providing a functioning Remix plugin for Fastify.

While this PR doesn't get merged, this is using middie to run the Remix rendering pipeline, so no route hooks are supported. Once the official Fastify route adapter gets merged, we can also support route hooks.

Install

npm install fastify fastify-remix

Usage

const Fastify = require('fastify')
const FastifyRemix = require('fastify-remix')

async function getServer () {
  const app = Fastify()
  await app.register(FastifyRemix)
  return app
}

See example/.