diff --git a/apps/web/src/pages/api/share-og/index.tsx b/apps/web/src/pages/api/share-og/index.tsx index a3e8b8308..28abbce36 100644 --- a/apps/web/src/pages/api/share-og/index.tsx +++ b/apps/web/src/pages/api/share-og/index.tsx @@ -1,10 +1,13 @@ -import { ImageResponse } from 'next/server'; +import { ImageResponse, NextRequest } from 'next/server'; export const config = { runtime: 'edge', }; -export default async function handler() { +export default async function handler(req: NextRequest) { + const { searchParams } = new URL(req.url); + const signature = searchParams.get('signature') || 'Timur'; + const [imageData, CaveatFontData, InterFontData] = await Promise.all([ fetch(new URL('../../../assets/background-pattern-og.png', import.meta.url)).then((res) => res.arrayBuffer(), @@ -35,7 +38,7 @@ export default async function handler() { }} >
-
Duncan
+
{signature}
You signed with Documenso