mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-19 09:18:01 +02:00
🪛 Clean up and fix og-image code (#820)
This commit is contained in:
parent
e7a69ffe1d
commit
6ff907004c
4 changed files with 22 additions and 25 deletions
|
@ -23,7 +23,6 @@ export default async function handler(req: NextRequest) {
|
|||
const { searchParams } = req.nextUrl;
|
||||
const title = searchParams.get("title");
|
||||
const excerpt = searchParams.get("excerpt");
|
||||
const type = searchParams.get("type");
|
||||
|
||||
return new ImageResponse(
|
||||
(
|
||||
|
@ -47,7 +46,7 @@ export default async function handler(req: NextRequest) {
|
|||
height={64}
|
||||
/>
|
||||
<div tw="flex text-gray-800 text-3xl tracking-tight font-bold">
|
||||
<span tw="bg-gray-200 px-6 py-3 rounded-full">{type}</span>
|
||||
<span tw="bg-gray-200 px-6 py-3 rounded-full">Blog</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue