File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
packages/notion-client/src Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if (useOfficialNotionAPI) {
2121}
2222
2323export async function getPage ( pageId : string ) : Promise < ExtendedRecordMap > {
24- const recordMap = await notion . getPage ( pageId )
24+ const recordMap = await notion . getPage ( pageId , { fetchRelationPages : true } )
2525
2626 if ( previewImagesEnabled ) {
2727 const previewImageMap = await getPreviewImageMap ( recordMap )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import notion from '../lib/notion'
66
77export const getStaticProps = async ( context : any ) => {
88 const pageId = ( context . params . pageId as string ) || rootNotionPageId
9- const recordMap = await notion . getPage ( pageId , { fetchRelationPages : true } )
9+ const recordMap = await notion . getPage ( pageId )
1010
1111 return {
1212 props : {
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export class NotionAPI {
5353 chunkNumber = 0 ,
5454 throwOnCollectionErrors = false ,
5555 collectionReducerLimit = 999 ,
56- fetchRelationPages = true , // New option
56+ fetchRelationPages = false ,
5757 kyOptions
5858 } : {
5959 concurrency ?: number
@@ -64,7 +64,7 @@ export class NotionAPI {
6464 chunkNumber ?: number
6565 throwOnCollectionErrors ?: boolean
6666 collectionReducerLimit ?: number
67- fetchRelationPages ?: boolean // New option
67+ fetchRelationPages ?: boolean
6868 kyOptions ?: KyOptions
6969 } = { }
7070 ) : Promise < notion . ExtendedRecordMap > {
You can’t perform that action at this time.
0 commit comments