Skip to content

Commit

Permalink
fix: og image route typescript issues
Browse files Browse the repository at this point in the history
  • Loading branch information
eckartal authored and eckartal committed Dec 29, 2024
1 parent eb977cc commit 7b08708
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions app/(post)/og/[id]/route.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1 @@
import { ImageResponse } from 'next/og'

export const runtime = 'edge'

export async function GET() {
return new ImageResponse(
(
<div
style={{
fontSize: 128,
background: 'white',
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
>
ECK
</div>
),
{
width: 1200,
height: 630,
},
)
}

0 comments on commit 7b08708

Please sign in to comment.