/remix-fastify

Fastify server request handler for Remix

Primary LanguageTypeScriptMIT LicenseMIT

Remix Fastify

Use Remix with Fastify

Installation

npm i @mcansh/remix-fastify
yarn add @mcansh/remix-fastify
pnpm i @mcansh/remix-fastify

Quick Start

  1. npx create-remix@latest --template express
  2. install this
  3. remove compression, express, morgan, nodemon
  4. update your server.js with the following ./example/server.js

Note

on windows, you may need to manually call installGlobals() inside server.ts

import fastify from "fastify";
import { remixFastifyPlugin } from "@mcansh/remix-fastify";
import { installGlobals } from "@remix-run/node";
installGlobals();
// rest of your server code

Example

checkout the example usage in ./example/server.ts