|
1 | 1 | import { getPageImage, source } from "@/lib/source"; |
2 | | -import { ImageResponse } from "@takumi-rs/image-response"; |
3 | | -import { generate as DefaultImage } from "fumadocs-ui/og/takumi"; |
4 | | -import { notFound } from "next/navigation"; |
| 2 | +// import { ImageResponse } from "@takumi-rs/image-response"; |
| 3 | +// import { generate as DefaultImage } from "fumadocs-ui/og/takumi"; |
| 4 | +// import { notFound } from "next/navigation"; |
5 | 5 |
|
6 | 6 | export const revalidate = false; |
7 | 7 |
|
8 | | -export async function GET(_req: Request, { params }: RouteContext<"/og/docs/[...slug]">) { |
9 | | - const { slug } = await params; |
10 | | - const page = source.getPage(slug.slice(0, -1)); |
11 | | - if (page == null) notFound(); |
| 8 | +// export async function GET(_req: Request, { params }: RouteContext<"/og/docs/[...slug]">) { |
| 9 | +// const { slug } = await params; |
| 10 | +// const page = source.getPage(slug.slice(0, -1)); |
| 11 | +// if (page == null) notFound(); |
12 | 12 |
|
13 | | - return new ImageResponse( |
14 | | - <DefaultImage description={page.data.description} site="ESLint React" title={page.data.title} />, |
15 | | - { |
16 | | - format: "webp", |
17 | | - height: 630, |
18 | | - width: 1200, |
19 | | - }, |
20 | | - ); |
21 | | -} |
| 13 | +// return new ImageResponse( |
| 14 | +// <DefaultImage description={page.data.description} site="ESLint React" title={page.data.title} />, |
| 15 | +// { |
| 16 | +// format: "webp", |
| 17 | +// height: 630, |
| 18 | +// width: 1200, |
| 19 | +// }, |
| 20 | +// ); |
| 21 | +// } |
22 | 22 |
|
23 | 23 | export function generateStaticParams() { |
24 | 24 | return source.getPages().map((page) => ({ |
|
0 commit comments