Skip to content

Commit

Permalink
feat: remove new URL
Browse files Browse the repository at this point in the history
  • Loading branch information
r3lays committed Feb 14, 2024
1 parent 157ffad commit 4c83dab
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 @@ -14,17 +14,11 @@ 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 4c83dab

Please sign in to comment.