diff --git a/app/share/[id]/opengraph-image.tsx b/app/share/[id]/opengraph-image.tsx index 04fd22d..03698df 100644 --- a/app/share/[id]/opengraph-image.tsx +++ b/app/share/[id]/opengraph-image.tsx @@ -1,11 +1,11 @@ import { ImageResponse } from 'next/server' import { getSharedChat } from '@/app/actions' -import { formatDate } from '@/lib/utils' export const runtime = 'edge' export const alt = 'AI Chatbot' + export const size = { width: 1200, height: 630 @@ -34,137 +34,66 @@ export default async function Image({ params }: ImageProps) { return null } + const textAlign = chat?.title?.length > 40 ? 'items-start' : 'items-center' + return new ImageResponse( ( -