diff --git a/app/lookup/[domain]/opengraph-image.tsx b/app/lookup/[domain]/opengraph-image.tsx index ca45c00f..6954d8ec 100644 --- a/app/lookup/[domain]/opengraph-image.tsx +++ b/app/lookup/[domain]/opengraph-image.tsx @@ -4,11 +4,11 @@ export const runtime = 'edge'; export const contentType = 'image/png'; const interRegularFontP = fetch( - new URL('../../../fonts/inter.woff', import.meta.url) + new URL('https://fonts.bunny.net/inter/files/inter-latin-400-normal.woff') ).then((res) => res.arrayBuffer()); const interBoldFontP = fetch( - new URL('../../../fonts/inter.woff', import.meta.url) + new URL('https://fonts.bunny.net/inter/files/inter-latin-700-normal.woff') ).then((res) => res.arrayBuffer()); export const handler = async ({ diff --git a/app/opengraph-image.tsx b/app/opengraph-image.tsx index f68afa7d..25f58603 100644 --- a/app/opengraph-image.tsx +++ b/app/opengraph-image.tsx @@ -4,14 +4,14 @@ export const runtime = 'edge'; export const contentType = 'image/png'; const interRegularFontP = fetch( - new URL('../fonts/inter.woff', import.meta.url) + new URL('https://fonts.bunny.net/inter/files/inter-latin-400-normal.woff') ).then((res) => res.arrayBuffer()); const interBoldFontP = fetch( - new URL('../fonts/inter.woff', import.meta.url) + new URL('https://fonts.bunny.net/inter/files/inter-latin-700-normal.woff') ).then((res) => res.arrayBuffer()); -export const handler = async (): Promise => { +export const handler = async () => { const [interRegularFont, interBoldFont] = await Promise.all([ interRegularFontP, interBoldFontP, diff --git a/fonts/inter.woff b/fonts/inter.woff deleted file mode 100644 index 5147c788..00000000 Binary files a/fonts/inter.woff and /dev/null differ