From dd9619f7558a5a44bce30e4194e2ac47ba55333d Mon Sep 17 00:00:00 2001 From: Innei Date: Sat, 8 Jul 2023 23:59:35 +0800 Subject: [PATCH] fix: edge runtime Signed-off-by: Innei --- src/app/api/bilibili/check_live/route.ts | 2 +- src/app/api/xlog/summary/route.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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')