diff --git a/apps/website/src/app/api/dynamic-open-graph.png/route.tsx b/apps/website/src/app/api/dynamic-open-graph.png/route.tsx index 2f3d6c539..5b9208f44 100644 --- a/apps/website/src/app/api/dynamic-open-graph.png/route.tsx +++ b/apps/website/src/app/api/dynamic-open-graph.png/route.tsx @@ -3,6 +3,7 @@ import type { ApiItemKind } from '@discordjs/api-extractor-model'; import { ImageResponse } from '@vercel/og'; import type { NextRequest } from 'next/server'; +import { resolvePackageName } from '~/util/resolvePackageName'; export const runtime = 'edge'; @@ -87,7 +88,7 @@ export async function GET(request: NextRequest) { const hasMethods = searchParams.has('methods'); const hasProps = searchParams.has('props'); const hasMembers = searchParams.has('members'); - const pkg = hasPkg ? searchParams.get('pkg') : ''; + const pkg = hasPkg ? resolvePackageName(searchParams.get('pkg')!) : ''; const kind = hasKind ? searchParams.get('kind')! : 'Method'; const name = hasName ? searchParams.get('name')!.slice(0, 100) : 'My default name which is super long to overflow'; const methods = hasMethods ? searchParams.get('methods') : ''; @@ -103,7 +104,7 @@ export async function GET(request: NextRequest) { tw="flex flex-row bg-[#181818] h-full w-full p-24" >