9150620993
Redo #47372 , basically revert #47416 and upgrade og (https://github.com/vercel/og/pull/60) Closes NEXT-264 Closes NEXT-266
25 lines
502 B
TypeScript
25 lines
502 B
TypeScript
import { ImageResponse } from '@vercel/og'
|
|
|
|
export const alt = 'Twitter'
|
|
export const size = { width: 1600, height: 900 }
|
|
|
|
export default function twitter() {
|
|
return new ImageResponse(
|
|
(
|
|
<div
|
|
style={{
|
|
width: '100%',
|
|
height: '100%',
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
fontSize: 128,
|
|
background: 'lavender',
|
|
}}
|
|
>
|
|
Twitter Image
|
|
</div>
|
|
),
|
|
size
|
|
)
|
|
}
|