Created
October 30, 2022 03:17
-
-
Save nathanclevenger/9accb82f028e46d12f48e12cd1f5cbd0 to your computer and use it in GitHub Desktop.
OpenGraph Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ImageResponse } from '@vercel/og'; | |
export const config = { | |
runtime: 'experimental-edge', | |
}; | |
export default function () { | |
return new ImageResponse( | |
( | |
<div | |
style={{ | |
fontSize: 128, | |
background: 'white', | |
width: '100%', | |
height: '100%', | |
display: 'flex', | |
textAlign: 'center', | |
alignItems: 'center', | |
justifyContent: 'center', | |
}} | |
> | |
Hello world! | |
</div> | |
), | |
{ | |
width: 1200, | |
height: 600, | |
}, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment