a tool for shared writing and social publishing
0
fork

Configure Feed

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

add some logs

+3
+3
app/[doc_id]/page.tsx
··· 88 88 89 89 let metadata: Metadata = { title: "Untitled Leaflet", description: " " }; 90 90 let block = blocks[0]; 91 + console.log(block); 91 92 if (!block) return metadata; 92 93 if (block?.type === "heading") { 93 94 let content = initialFacts.find( 94 95 (f) => f.entity === block.value && f.attribute === "block/text", 95 96 ) as Fact<"block/text"> | undefined; 97 + console.log(content); 96 98 if (content) { 97 99 let doc = new Y.Doc(); 98 100 const update = base64.toByteArray(content.data.value); ··· 105 107 let content = initialFacts.find( 106 108 (f) => f.entity === block.value && f.attribute === "block/text", 107 109 ) as Fact<"block/text"> | undefined; 110 + console.log(content); 108 111 if (content) { 109 112 let doc = new Y.Doc(); 110 113 const update = base64.toByteArray(content.data.value);