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 15, 2023
1 parent 795a5fc commit 739f046
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 739f046

Please sign in to comment.