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) {
21
21
}
22
22
23
23
export async function getPage ( pageId : string ) : Promise < ExtendedRecordMap > {
24
- const recordMap = await notion . getPage ( pageId )
24
+ const recordMap = await notion . getPage ( pageId , { fetchRelationPages : true } )
25
25
26
26
if ( previewImagesEnabled ) {
27
27
const previewImageMap = await getPreviewImageMap ( recordMap )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import notion from '../lib/notion'
6
6
7
7
export const getStaticProps = async ( context : any ) => {
8
8
const pageId = ( context . params . pageId as string ) || rootNotionPageId
9
- const recordMap = await notion . getPage ( pageId , { fetchRelationPages : true } )
9
+ const recordMap = await notion . getPage ( pageId )
10
10
11
11
return {
12
12
props : {
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export class NotionAPI {
53
53
chunkNumber = 0 ,
54
54
throwOnCollectionErrors = false ,
55
55
collectionReducerLimit = 999 ,
56
- fetchRelationPages = true , // New option
56
+ fetchRelationPages = false ,
57
57
kyOptions
58
58
} : {
59
59
concurrency ?: number
@@ -64,7 +64,7 @@ export class NotionAPI {
64
64
chunkNumber ?: number
65
65
throwOnCollectionErrors ?: boolean
66
66
collectionReducerLimit ?: number
67
- fetchRelationPages ?: boolean // New option
67
+ fetchRelationPages ?: boolean
68
68
kyOptions ?: KyOptions
69
69
} = { }
70
70
) : Promise < notion . ExtendedRecordMap > {
You can’t perform that action at this time.
0 commit comments