mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 23:16:47 +00:00
🗜
This commit is contained in:
@@ -34,7 +34,11 @@ export default async function OGImage(req: NextRequest) {
|
||||
body: JSON.stringify({ pageId }),
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
})
|
||||
if (!pageInfoRes.ok) {
|
||||
return new Response(pageInfoRes.statusText, { status: pageInfoRes.status })
|
||||
}
|
||||
const pageInfo: NotionPageInfo = await pageInfoRes.json()
|
||||
console.log(pageInfo)
|
||||
|
||||
return new ImageResponse(
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user