33 lines
718 B
TypeScript
33 lines
718 B
TypeScript
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,
|
||
}
|
||
)
|
||
}
|