@wroud/vite-plugin-ssg
Version:
A Vite plugin for static site generation (SSG) with React. Renders React applications to static HTML for faster load times and improved SEO.
7 lines • 415 B
TypeScript
import type { IServerAPI } from "../react/server.js";
import type { IAppContext } from "../app.js";
export declare function loadServerApi(module: string): Promise<{
create: <T extends IAppContext>(context: import("../ssgPlugin.js").IndexComponentContext) => Promise<Pick<IServerAPI<T>, "render" | "getPathsToPrerender" | "dispose">>;
dispose(): Promise<void>;
}>;
//# sourceMappingURL=loadServerApi.d.ts.map