this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

move fonts to assets

+7 -6
src/app/fonts/BerkeleyMono-Regular.woff2 src/assets/fonts/BerkeleyMono-Regular.woff2
src/app/fonts/LibreBaskerville-Italic.ttf src/assets/fonts/LibreBaskerville-Italic.ttf
+1 -1
src/app/layout.tsx
··· 21 21 }); 22 22 23 23 const mono = localFont({ 24 - src: "./fonts/BerkeleyMono-Regular.woff2", 24 + src: "../assets/fonts/BerkeleyMono-Regular.woff2", 25 25 variable: "--font-berkeley-mono", 26 26 weight: "400", 27 27 });
+1 -1
src/app/opengraph-image.tsx
··· 9 9 10 10 export default async function OpenGraphImage() { 11 11 const fontData = await fetch( 12 - new URL("./fonts/LibreBaskerville-Italic.ttf", import.meta.url), 12 + new URL("../assets/fonts/LibreBaskerville-Italic.ttf", import.meta.url), 13 13 ).then((res) => res.arrayBuffer()); 14 14 15 15 return new ImageResponse(
+5 -4
src/app/post/[rkey]/opengraph-image.tsx
··· 1 - 2 1 import { ImageResponse } from "next/og"; 3 2 4 3 import { getPost } from "#/lib/api"; 5 4 6 - export const runtime = 'edge' 5 + export const runtime = "edge"; 7 6 export const size = { 8 7 width: 1200, 9 8 height: 630, ··· 19 18 20 19 const post = await getPost(rkey); 21 20 22 - 23 21 const fontData = await fetch( 24 - new URL("../../fonts/LibreBaskerville-Italic.ttf", import.meta.url), 22 + new URL( 23 + "../../../assets/fonts/LibreBaskerville-Italic.ttf", 24 + import.meta.url, 25 + ), 25 26 ).then((res) => res.arrayBuffer()); 26 27 27 28 return new ImageResponse(