a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use dynamic import for renderToReadableStream

+3 -1
+3 -1
app/lish/[did]/[publication]/generateFeed.ts
··· 6 6 PubLeafletPublication, 7 7 } from "lexicons/api"; 8 8 import { createElement } from "react"; 9 - import { renderToReadableStream } from "react-dom/server"; 10 9 import { StaticPostContent } from "./[rkey]/StaticPostContent"; 11 10 import { get_publication_data } from "app/api/rpc/[command]/get_publication_data"; 12 11 import { supabaseServerClient } from "supabase/serverClient"; ··· 16 15 did: string, 17 16 publication_name: string, 18 17 ): Promise<Feed | NextResponse<unknown>> { 18 + let renderToReadableStream = await import("react-dom/server").then( 19 + (module) => module.renderToReadableStream, 20 + ); 19 21 let { result: publication } = await get_publication_data.handler( 20 22 { 21 23 did: did,