mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix(web): remove docs og
This commit is contained in:
@@ -1,27 +0,0 @@
|
|||||||
// temporary disable og image because it exceeded worker 3 mb limit
|
|
||||||
|
|
||||||
// import { generateOGImage } from "fumadocs-ui/og";
|
|
||||||
// import { notFound } from "next/navigation";
|
|
||||||
// import { source } from "@/lib/source";
|
|
||||||
|
|
||||||
// export async function GET(
|
|
||||||
// _req: Request,
|
|
||||||
// { params }: { params: Promise<{ slug: string[] }> },
|
|
||||||
// ) {
|
|
||||||
// const { slug } = await params;
|
|
||||||
// const page = source.getPage(slug.slice(0, -1));
|
|
||||||
// if (!page) notFound();
|
|
||||||
|
|
||||||
// return generateOGImage({
|
|
||||||
// title: page.data.title,
|
|
||||||
// description: page.data.description,
|
|
||||||
// site: "Better-T-Stack",
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
// export function generateStaticParams() {
|
|
||||||
// return source.generateParams().map((page) => ({
|
|
||||||
// ...page,
|
|
||||||
// slug: [...page.slug, "image.png"],
|
|
||||||
// }));
|
|
||||||
// }
|
|
||||||
@@ -49,17 +49,8 @@ export async function generateMetadata({
|
|||||||
const { slug = [] } = await params;
|
const { slug = [] } = await params;
|
||||||
const page = source.getPage(slug);
|
const page = source.getPage(slug);
|
||||||
if (!page) notFound();
|
if (!page) notFound();
|
||||||
|
|
||||||
// const image = `/docs-og/${slug.join("/")}/image.png`;
|
|
||||||
return {
|
return {
|
||||||
title: page.data.title,
|
title: page.data.title,
|
||||||
description: page.data.description,
|
description: page.data.description,
|
||||||
// openGraph: {
|
|
||||||
// images: image,
|
|
||||||
// },
|
|
||||||
// twitter: {
|
|
||||||
// card: "summary_large_image",
|
|
||||||
// images: image,
|
|
||||||
// },
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user