feat : add metadata for comment page
CI / Verify (push) Successful in 2m39s
CI / Build immutable images and deploy (push) Successful in 2m19s

This commit is contained in:
2026-10-13 00:21:37 +07:00 Unverified
parent fc29cac1ca
commit f8ef86cb5e
2 changed files with 8 additions and 2 deletions
+8 -1
View File
@@ -11,7 +11,14 @@ export const instant = false;
type Props = { params: Promise<{ character: string }> };
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const guide = await getCachedPublicGuideSummary((await params).character);
return { title: guide ? `${guide.name}` : "ไม่พบไกด์" };
return guide
? {
title: `${guide.name}`,
description: guide.overview,
openGraph: { images: [guide.coverUrl] },
twitter: { images: [guide.coverUrl] },
}
: { title: "ไม่พบไกด์" };
}
export default async function GuideCommentPage({ params }: Props) {
await connection();
-1
View File
@@ -31,7 +31,6 @@ export default function DonatePage() {
width={412}
height={412}
className="size-full max-w-72"
priority
/>
</div>
<Button nativeButton={false} render={<a href="/donate.jpg" download="buzz-guide-donate-qr.jpg" />}>บันทึก QR สำหรับโอนเงิน</Button>