UNPKG

vite-plugin-react-server

Version:
24 lines 847 B
/** * renderPage.server.ts * * PURPOSE: Server-side static page rendering for React Server Components * * ARCHITECTURE OVERVIEW: * * SERVER-SIDE vs CLIENT-SIDE: * - Server-side: RSC generation in main thread, HTML generation in worker * - Client-side: RSC generation in worker, HTML generation in main thread * * FLOW: * 1. Create headless RSC stream (for .rsc file) * 2. Create full RSC stream (for HTML generation) * 3. Create HTML transform stream that converts RSC to HTML * 4. Both streams are piped to file writers * * SIMPLIFIED APPROACH: * This implementation follows the same simple pattern as the client side, * avoiding complex backpressure handling and race conditions. */ import type { RenderPageFn } from "./types.js"; export declare const renderPage: RenderPageFn; //# sourceMappingURL=renderPage.server.d.ts.map