@@ -5,15 +5,15 @@ import type { NextRequest } from 'next/server'
5
5
6
6
import { apiClient } from '~/lib/request'
7
7
8
- const fontNormal = fetch (
9
- 'https://github.com/lxgw/LxgwWenKai/releases/download/v1.300/LXGWWenKai-Regular.ttf' ,
10
- ) . then ( ( res ) => res . arrayBuffer ( ) )
8
+ // const fontNormal = fetch(
9
+ // 'https://github.com/lxgw/LxgwWenKai/releases/download/v1.300/LXGWWenKai-Regular.ttf',
10
+ // ).then((res) => res.arrayBuffer())
11
11
// export const runtime = 'edge'
12
12
13
13
export const revalidate = 60 * 60 * 24 // 24 hours
14
14
export const GET = async ( req : NextRequest ) => {
15
15
try {
16
- const fontData = await fontNormal
16
+ // const fontData = await fontNormal
17
17
18
18
const { searchParams } = req . nextUrl
19
19
@@ -104,7 +104,8 @@ export const GET = async (req: NextRequest) => {
104
104
105
105
background : `linear-gradient(37deg, ${ bgAccent } 27.82%, ${ bgAccentLight } 79.68%, ${ bgAccentUltraLight } 100%)` ,
106
106
107
- fontFamily : 'LXGW WenKai Screen R' ,
107
+ // fontFamily: 'LXGWWenKai',
108
+ fontFamily : 'Inter, "Material Icons"' ,
108
109
109
110
padding : '5rem' ,
110
111
alignItems : 'flex-end' ,
@@ -177,14 +178,15 @@ export const GET = async (req: NextRequest) => {
177
178
{
178
179
width : 1200 ,
179
180
height : 600 ,
180
- fonts : [
181
- {
182
- name : 'LXGW WenKai Screen R' ,
183
- data : fontData ,
184
- weight : 400 ,
185
- style : 'normal' ,
186
- } ,
187
- ] ,
181
+ emoji : 'twemoji' ,
182
+ // fonts: [
183
+ // {
184
+ // name: 'LXGW WenKai Screen R',
185
+ // // data: fontData,
186
+ // weight: 400,
187
+ // style: 'normal',
188
+ // },
189
+ // ],
188
190
} ,
189
191
)
190
192
} catch ( e : any ) {
0 commit comments