diff --git a/src/app/api/bilibili/check_live/route.ts b/src/app/api/bilibili/check_live/route.ts index 5bec4c24f8..33217fb02f 100644 --- a/src/app/api/bilibili/check_live/route.ts +++ b/src/app/api/bilibili/check_live/route.ts @@ -9,7 +9,7 @@ const headers = { referer: `https://link.bilibili.com/p/center/index?visit_id=22ast2mb9zhc`, 'User-Agent': `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 Shiro`, } - +export const runtime = 'edge' export const GET = async () => { const liveId = appConfig.module.bilibili.liveId diff --git a/src/app/api/xlog/summary/route.ts b/src/app/api/xlog/summary/route.ts index caa3317f72..241126effe 100644 --- a/src/app/api/xlog/summary/route.ts +++ b/src/app/api/xlog/summary/route.ts @@ -8,6 +8,8 @@ const headers = { 'User-Agent': `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 Shiro`, } +export const runtime = 'edge' + export const GET = async (req: NextRequest) => { const query = req.nextUrl.searchParams const cid = query.get('cid')