import { fastifyTRPCPlugin, } from "@trpc/server/adapters/fastify";
import { createContext } from "./index.js";
import { appRouter } from "./routers/index.js";
export async function appTrpcPlugin(app) {
    await app.register(fastifyTRPCPlugin, {
        trpcOptions: { router: appRouter, createContext },
    });
}
//# sourceMappingURL=fastifyAdapter.js.map