Skip to content

Commit 055f67e

Browse files
committed
use woff2 instead of ttf
1 parent 0980f0e commit 055f67e

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

Diff for: public/assets/fonts/Inter-Bold.ttf

-309 KB
Binary file not shown.

Diff for: public/assets/fonts/Inter-Bold.woff2

108 KB
Binary file not shown.

Diff for: public/assets/fonts/Inter-SemiBold.ttf

-309 KB
Binary file not shown.

Diff for: public/assets/fonts/Inter-SemiBold.woff2

109 KB
Binary file not shown.

Diff for: src/app/api/og/route.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export async function GET(req: NextRequest) {
77
const title = req.nextUrl.searchParams.get('title') ?? null
88
const category = req.nextUrl.searchParams.get('category') ?? null
99

10-
const fontBoldURL = new URL(`${FULL_DOMAIN}/assets/fonts/Inter-Bold.ttf`)
10+
const fontBoldURL = new URL(`${FULL_DOMAIN}/assets/fonts/Inter-Bold.woff2`)
1111
const fontBold = await fetch(fontBoldURL)
1212
const fontBoldData = await fontBold.arrayBuffer()
1313

14-
const fontSemiBoldURL = new URL(`${FULL_DOMAIN}/assets/fonts/Inter-SemiBold.ttf`)
14+
const fontSemiBoldURL = new URL(`${FULL_DOMAIN}/assets/fonts/Inter-SemiBold.woff2`)
1515
const fontSemiBold = await fetch(fontSemiBoldURL)
1616
const fontSemiBoldData = await fontSemiBold.arrayBuffer()
1717

0 commit comments

Comments
 (0)