Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bifrost-fastify/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
RawServerBase,
FastifyPluginAsync,
RouteGenericInterface,
RawReplyDefaultExpression,
} from "fastify";
import { FastifyRequest, RequestGenericInterface } from "fastify/types/request";
import proxy, { type FastifyHttpProxyOptions } from "@fastify/http-proxy";
Expand All @@ -16,7 +17,6 @@ import { extractDomElements } from "./lib/extractDomElements";
import { Http2ServerRequest } from "http2";
import { text } from "node:stream/consumers";
import { parse as parseContentType } from "fast-content-type-parse";
import { RawServerResponse } from "@fastify/reply-from";

type RenderedPageContext = Awaited<
ReturnType<
Expand Down Expand Up @@ -62,7 +62,7 @@ interface ViteProxyPluginOptions extends Omit<
) => Promise<Partial<Omit<PageContextServer, "headers">>>;
beforeWrappedRender?: (
req: FastifyRequest<RequestGenericInterface, RawServerBase>,
res: RawServerResponse<RawServerBase>
res: RawReplyDefaultExpression<RawServerBase>
) => void;
}
/**
Expand Down