feat : use cover image guide instead of shit image generater
CI / Verify (push) Successful in 1m7s
CI / Build immutable images and deploy (push) Successful in 2m13s

This commit is contained in:
2026-09-11 17:28:38 +07:00 Unverified
parent ecbb8dda55
commit 1164715d64
5 changed files with 14 additions and 232 deletions
+8 -1
View File
@@ -11,7 +11,14 @@ export const instant = false;
export async function generateMetadata({ params }: { params: Params }): Promise<Metadata> {
const { character } = await params;
const guide = await getCachedPublicGuide(character);
return guide ? { title: `${guide.name}`, description: guide.overview } : { title: "ไม่พบไกด์" };
return guide
? {
title: `${guide.name}`,
description: guide.overview,
openGraph: { images: [guide.coverUrl] },
twitter: { images: [guide.coverUrl] },
}
: { title: "ไม่พบไกด์" };
}
export default async function GuideSectionPage({ params }: { params: Params }) {