Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added app/og/[...slug]/Inter-Bold.ttf
Binary file not shown.
Binary file added app/og/[...slug]/Inter-Regular.ttf
Binary file not shown.
Binary file removed app/og/[...slug]/JetBrainsMono-Bold.ttf
Binary file not shown.
Binary file removed app/og/[...slug]/JetBrainsMono-Regular.ttf
Binary file not shown.
4 changes: 2 additions & 2 deletions app/og/[...slug]/og.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export function generate({
{/* biome-ignore lint/nursery/noImgElement: Image doesn't work with next/og */}
<img
src="https://wouldyoubot.gg/Logo.png"
height="85"
width="53"
height="55"
width="55"
alt="Would You logo"
/>
<p
Expand Down
8 changes: 4 additions & 4 deletions app/og/[...slug]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { generateOGImage } from "@/app/og/[...slug]/og";
import { source } from "@/lib/source";
import { notFound } from "next/navigation";

const font = readFileSync("./app/og/[...slug]/JetBrainsMono-Regular.ttf");
const fontBold = readFileSync("./app/og/[...slug]/JetBrainsMono-Bold.ttf");
const font = readFileSync("./app/og/[...slug]/Inter-Regular.ttf");
const fontBold = readFileSync("./app/og/[...slug]/Inter-Bold.ttf");

export async function GET(
_req: Request,
Expand All @@ -22,12 +22,12 @@ export async function GET(
description: page.data.description,
fonts: [
{
name: "Mono",
name: "Inter",
data: font,
weight: 400
},
{
name: "Mono",
name: "Inter",
data: fontBold,
weight: 600
}
Expand Down
8 changes: 7 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
"@/*": ["./*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"**/*.ttf"
],
"exclude": ["node_modules"]
}