mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-06-07 23:16:46 +00:00
fix: prod build
This commit is contained in:
@@ -10,9 +10,7 @@ const notion = new NotionAPI({
|
||||
export default notion
|
||||
|
||||
export async function getPage(pageId: string): Promise<ExtendedRecordMap> {
|
||||
const recordMap = await notion.getPage(pageId, {
|
||||
fetchParents: false
|
||||
})
|
||||
const recordMap = await notion.getPage(pageId)
|
||||
const blockIds = Object.keys(recordMap.block)
|
||||
|
||||
const imageUrls: string[] = blockIds
|
||||
|
||||
Reference in New Issue
Block a user