build: update dependencies and fumadocs

This commit is contained in:
rzmk 2025-12-02 21:16:06 -05:00
parent 100165ec29
commit fd5ebf4af0
144 changed files with 301 additions and 431 deletions

View file

@ -1,26 +1,24 @@
import { getPageImage, source } from '@/lib/source';
import { notFound } from 'next/navigation';
import { ImageResponse } from 'next/og';
import { generate as DefaultImage } from 'fumadocs-ui/og';
import { generate as DefaultImage } from "fumadocs-ui/og";
import { notFound } from "next/navigation";
import { ImageResponse } from "next/og";
import { getPageImage, source } from "@/lib/source";
export const revalidate = false;
export async function GET(
_req: Request,
{ params }: RouteContext<'/og/docs/[...slug]'>,
{ params }: RouteContext<"/og/docs/[...slug]">,
) {
const { slug } = await params;
const page = source.getPage(slug.slice(0, -1));
if (!page) notFound();
return new ImageResponse(
(
<DefaultImage
title={page.data.title}
description={page.data.description}
site="ckanaction"
/>
),
<DefaultImage
title={page.data.title}
description={page.data.description}
site="ckanaction.dathere.com"
/>,
{
width: 1200,
height: 630,