File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed
Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 11import { 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 } ,
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments