Skip to content

Commit

Permalink
Trying to fix opengraph images
Browse files Browse the repository at this point in the history
Seeing if vercel/next.js#53998 is right?
  • Loading branch information
altano committed Aug 16, 2023
1 parent 88a5560 commit a7d22ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/opengraph/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ export const size = {

export const contentType = "image/png";

const fontData = fs.promises.readFile(
getAbsolutePathFromProjectRoot("./assets/fonts/Inter/static/Inter-Bold.ttf")
);

export default async function OpenGraphImage(props: OpenGraphCardProps) {
const fontData = fs.promises.readFile(
getAbsolutePathFromProjectRoot("./assets/fonts/Inter/static/Inter-Bold.ttf")
);
return new ImageResponse(<OpenGraphCard {...props} />, {
...size,
fonts: [
Expand Down

0 comments on commit a7d22ce

Please sign in to comment.