Files
test/src/app/icon.tsx
2025-11-18 16:05:05 -05:00

31 lines
462 B
TypeScript

import { ImageResponse } from 'next/og'
export const contentType = 'image/png'
export const size = {
height: 32,
width: 32
}
export default async function Icon() {
return new ImageResponse(
<div
style={{
alignItems: 'center',
background: 'black',
color: 'white',
display: 'flex',
fontSize: 28,
fontWeight: 700,
height: '100%',
justifyContent: 'center',
width: '100%'
}}
>
R
</div>,
{
...size
}
)
}