Skip to content

Commit

Permalink
woff2 fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
arzafran committed Apr 17, 2024
1 parent 5b764b4 commit f31af05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/opengraph-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ export const contentType = 'image/png'
const getFont = async () => {
const res = await fetch(
new URL('fonts/IBM_Plex_Mono/IBMPlexMono-Regular.woff2', import.meta.url),
{
headers: {
'Content-Type': 'font/woff2',
},
},
)
return await res.arrayBuffer()
}
Expand Down

0 comments on commit f31af05

Please sign in to comment.