this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix og:image

alice 010ba387 a3dac852

+2 -11
+2 -11
src/app/opengraph-image.tsx
··· 10 10 export const contentType = "image/png"; 11 11 12 12 export default async function OpenGraphImage() { 13 - const fontData = await readFile( 14 - join(process.cwd(), "./src/app/fonts/LibreBaskerville-Italic.ttf"), 15 - ).then((res) => Uint8Array.from(res).buffer); 16 13 return new ImageResponse( 17 14 ( 18 15 <div tw="h-full w-full bg-white flex flex-col justify-center items-center"> 19 16 <h1 20 17 style={{ 21 - fontFamily: '"Libre Baskerville"', 18 + fontFamily: "system", 22 19 fontSize: 80, 23 20 textTransform: "uppercase", 24 21 fontWeight: 700, 25 - fontStyle: "italic", 22 + fontStyle: "normal", 26 23 }} 27 24 > 28 25 {HOSTNAME} ··· 32 29 ), 33 30 { 34 31 ...size, 35 - fonts: [ 36 - { 37 - name: "Libre Baskerville", 38 - data: fontData, 39 - }, 40 - ], 41 32 }, 42 33 ); 43 34 }