fix: prod build

This commit is contained in:
Travis Fischer
2021-01-16 20:06:48 -05:00
parent b4da692480
commit e839891738
3 changed files with 8 additions and 6 deletions

View File

@@ -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