feat : use cover image guide instead of shit image generater
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user