vercel-og-with-tweaks/pages/api/language.tsx

33 lines
718 B
TypeScript
Raw Normal View History

2022-11-04 23:02:31 +00:00
import { ImageResponse } from '@vercel/og'
export const config = {
runtime: 'experimental-edge',
}
export default async function handler() {
return new ImageResponse(
(
<div
style={{
fontSize: 40,
color: 'black',
background: 'white',
width: '100%',
height: '100%',
padding: '50px 200px',
textAlign: 'center',
justifyContent: 'center',
alignItems: 'center',
display: 'flex',
}}
>
👋 Hello добрий день Hallá
</div>
),
{
width: 1200,
height: 630,
}
)
}