File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { ExtendedRecordMap , PageMap } from 'notion-types'
2
+ import { ParsedUrlQuery } from 'querystring'
2
3
3
4
export * from 'notion-types'
4
5
@@ -16,6 +17,10 @@ export interface PageProps {
16
17
error ?: PageError
17
18
}
18
19
20
+ export interface Params extends ParsedUrlQuery {
21
+ pageId : string
22
+ }
23
+
19
24
export interface Site {
20
25
name : string
21
26
domain : string
Original file line number Diff line number Diff line change 1
1
import * as React from 'react'
2
+ import { GetStaticProps } from 'next'
2
3
import { isDev , domain } from 'lib/config'
3
4
import { getSiteMap } from 'lib/get-site-map'
4
5
import { resolveNotionPage } from 'lib/resolve-notion-page'
6
+ import { PageProps , Params } from 'lib/types'
5
7
import { NotionPage } from 'components'
6
8
7
- export const getStaticProps = async ( context ) => {
9
+ export const getStaticProps : GetStaticProps < PageProps , Params > = async ( context ) => {
8
10
const rawPageId = context . params . pageId as string
9
11
10
12
try {
You can’t perform that action at this time.
0 commit comments