Skip to content

Commit

Permalink
revert last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
maaaathis committed Dec 6, 2023
1 parent 0016aae commit 71565df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/lookup/[domain]/opengraph-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ({
Expand Down
6 changes: 3 additions & 3 deletions app/opengraph-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ImageResponse> => {
export const handler = async () => {
const [interRegularFont, interBoldFont] = await Promise.all([
interRegularFontP,
interBoldFontP,
Expand Down
Binary file removed fonts/inter.woff
Binary file not shown.

0 comments on commit 71565df

Please sign in to comment.