fix(web): remove docs og

This commit is contained in:
Aman Varshney
2025-08-30 06:43:48 +05:30
parent fb60508779
commit 881834ce24
2 changed files with 0 additions and 36 deletions

View File

@@ -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"],
// }));
// }

View File

@@ -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,
// },
}; };
} }