Package Exports
- @fedify/fastify
- @fedify/fastify/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fedify/fastify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@fedify/fastify: Integrate Fedify with Fastify
This package provides a simple way to integrate Fedify with Fastify.
The integration code looks like this:
import Fastify from "fastify";
import { fedifyPlugin } from "@fedify/fastify";
import { federation } from "./federation.ts"; // Your `Federation` instance
const fastify = Fastify({ logger: true });
await fastify.register(fedifyPlugin, {
federation,
contextDataFactory: () => undefined,
});
fastify.listen({ port: 3000 });