rsnext/test/e2e/app-dir/metadata-dynamic-routes/app/twitter-image.tsx
Jiachi Liu 9150620993
Support dynamic routes for social images and icons (#47425)
Redo #47372 , basically revert #47416 and upgrade og (https://github.com/vercel/og/pull/60)

Closes NEXT-264
Closes NEXT-266
2023-03-23 00:12:22 +00:00

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
)
}