Skip to content

Commit 0199896

Browse files
committed
fix og
1 parent f41833f commit 0199896

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

apps/web/app/og/route.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { ImageResponse } from "next/og";
22

3-
export const runtime = "edge";
4-
5-
export async function GET() {
6-
const geistSemiBold = await fetch(
7-
new URL("../fonts/GeistVF.woff", import.meta.url),
8-
).then((res) => res.arrayBuffer());
3+
export async function GET(request: Request) {
4+
const geist = await fetch(new URL("/Geist-Regular.ttf", request.url)).then(
5+
(res) => res.arrayBuffer(),
6+
);
97

108
return new ImageResponse(
119
<div
@@ -20,9 +18,9 @@ export async function GET() {
2018
>
2119
<span
2220
style={{
23-
fontSize: 72,
21+
fontSize: 144,
2422
fontFamily: "Geist",
25-
fontWeight: 600,
23+
fontWeight: 400,
2624
color: "white",
2725
letterSpacing: "-0.02em",
2826
}}
@@ -36,9 +34,9 @@ export async function GET() {
3634
fonts: [
3735
{
3836
name: "Geist",
39-
data: geistSemiBold,
37+
data: geist,
4038
style: "normal",
41-
weight: 600,
39+
weight: 400,
4240
},
4341
],
4442
},

apps/web/public/Geist-Regular.ttf

69.4 KB
Binary file not shown.

examples/dashboard/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/types/routes.d.ts";
3+
import "./.next/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)