Skip to content

Commit

Permalink
fix: edge runtime
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 8, 2023
1 parent 48a5923 commit dd9619f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/bilibili/check_live/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/app/api/xlog/summary/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

1 comment on commit dd9619f

@vercel
Copy link

@vercel vercel bot commented on dd9619f Jul 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-git-main-innei.vercel.app
springtide.vercel.app
shiro-innei.vercel.app
innei.in

Please sign in to comment.