diff --git a/dev b/dev index b2cd5013af..0bcb510b26 100755 --- a/dev +++ b/dev @@ -78,6 +78,7 @@ def main(): def run_desktop(args): run("./scripts/cleanup-desktop.sh") run("yarn install") + run("yarn workspace @mintter/ui generate") run("plz build //backend:mintterd //:yarn") return run("yarn desktop", args=args) diff --git a/frontend/apps/site/pages/api/content-image/[entityType]/[entityId]/[versionId]/media.png.tsx b/frontend/apps/site/pages/api/content-image/[entityType]/[entityId]/[versionId]/media.png.tsx index e784219f58..fb06d8f02d 100644 --- a/frontend/apps/site/pages/api/content-image/[entityType]/[entityId]/[versionId]/media.png.tsx +++ b/frontend/apps/site/pages/api/content-image/[entityType]/[entityId]/[versionId]/media.png.tsx @@ -6,20 +6,19 @@ import {readFileSync} from 'fs' import {join} from 'path' import {serverHelpers} from 'server/ssr-helpers' import {OG_IMAGE_SIZE} from 'server/content-image-meta' -import { - HMBlockChildrenType, - InlineContent, - createHmId, - serverBlockToEditorInline, -} from '@mintter/shared' import { HMAccount, HMBlock, + HMBlockChildrenType, HMBlockNode, HMGroup, HMPublication, -} from 'server/json-hm' + createHmId, + toHMInlineContent, +} from '@mintter/shared' + import {ReactElement} from 'react' +import {InlineContent} from '@mintter/editor' function loadFont(fileName: string) { const path = join(process.cwd(), 'font', fileName) @@ -69,7 +68,7 @@ function ParagraphBlockDisplay({ block: HMBlock childrenType: HMBlockChildrenType }) { - const inlineContent = serverBlockToEditorInline(block) + const inlineContent = toHMInlineContent(block) return (