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 11import { ExtendedRecordMap , PageMap } from 'notion-types'
2+ import { ParsedUrlQuery } from 'querystring'
23
34export * from 'notion-types'
45
@@ -16,6 +17,10 @@ export interface PageProps {
1617 error ?: PageError
1718}
1819
20+ export interface Params extends ParsedUrlQuery {
21+ pageId : string
22+ }
23+
1924export interface Site {
2025 name : string
2126 domain : string
Original file line number Diff line number Diff line change 11import * as React from 'react'
2+ import { GetStaticProps } from 'next'
23import { isDev , domain } from 'lib/config'
34import { getSiteMap } from 'lib/get-site-map'
45import { resolveNotionPage } from 'lib/resolve-notion-page'
6+ import { PageProps , Params } from 'lib/types'
57import { NotionPage } from 'components'
68
7- export const getStaticProps = async ( context ) => {
9+ export const getStaticProps : GetStaticProps < PageProps , Params > = async ( context ) => {
810 const rawPageId = context . params . pageId as string
911
1012 try {
You can’t perform that action at this time.
0 commit comments