npm i @mcansh/remix-fastify
yarn add @mcansh/remix-fastify
pnpm i @mcansh/remix-fastify
npx create-remix@latest --template https://github.com/mcansh/remix-fastify/tree/main/example --no-install
- opt out of installing dependencies due to pnpm workspaces
- install this package manually using the instructions above
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
checkout the example usage in ./example/server.ts