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.
pageUrlOverrides
1 parent 7193796 commit d0533c3Copy full SHA for d0533c3
pages/[pageId].tsx renamed to pages/[...pageId].tsx
@@ -10,7 +10,7 @@ import { PageProps, Params } from '@/lib/types'
10
export const getStaticProps: GetStaticProps<PageProps, Params> = async (
11
context
12
) => {
13
- const rawPageId = context.params.pageId as string
+ const rawPageId = (context.params.pageId).join('/')
14
15
try {
16
const props = await resolveNotionPage(domain, rawPageId)
@@ -38,7 +38,7 @@ export async function getStaticPaths() {
38
const staticPaths = {
39
paths: Object.keys(siteMap.canonicalPageMap).map((pageId) => ({
40
params: {
41
- pageId
+ pageId: pageId.split('/')
42
}
43
})),
44
// paths: [],
0 commit comments