Skip to content

Commit

Permalink
feat: fix fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
r3lays committed Feb 6, 2024
1 parent bbd23b3 commit 8aa5caa
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pages/api/og/token/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@ export default async function handler(request: NextRequest) {

const [blackFont, regularFont] = await Promise.all([
fetch(
new URL(
`https://github.com/reservoirprotocol/marketplace-v2/raw/dev/public/fonts/Inter-Black.ttf`,
import.meta.url
)
`https://github.com/reservoirprotocol/marketplace-v2/raw/dev/public/fonts/Inter-Black.ttf`
).then((res) => res.arrayBuffer()),
fetch(
new URL(
`https://github.com/reservoirprotocol/marketplace-v2/raw/dev/public/fonts/Inter-Regular.ttf`,
import.meta.url
)
`https://github.com/reservoirprotocol/marketplace-v2/raw/dev/public/fonts/Inter-Regular.ttf`
).then((res) => res.arrayBuffer()),
])

Expand Down

0 comments on commit 8aa5caa

Please sign in to comment.