We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c907e95 commit 6e6cf3aCopy full SHA for 6e6cf3a
pages/[pageId].tsx
@@ -1,10 +1,12 @@
1
import * as React from 'react'
2
+import { GetStaticProps } from 'next'
3
import { isDev, domain } from 'lib/config'
4
import { getSiteMap } from 'lib/get-site-map'
5
import { resolveNotionPage } from 'lib/resolve-notion-page'
6
+import { PageProps, Params } from 'lib/types'
7
import { NotionPage } from 'components'
8
-export const getStaticProps = async (context) => {
9
+export const getStaticProps: GetStaticProps<PageProps, Params> = async (context) => {
10
const rawPageId = context.params.pageId as string
11
12
try {
0 commit comments