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 1fdecd6 commit d3862c9Copy full SHA for d3862c9
pages/[pageId].tsx renamed to pages/[...pageId].tsx
@@ -5,7 +5,7 @@ import { resolveNotionPage } from 'lib/resolve-notion-page'
5
import { NotionPage } from 'components'
6
7
export const getStaticProps = async (context) => {
8
- const rawPageId = context.params.pageId as string
+ const rawPageId = (context.params.pageId).join('/')
9
10
try {
11
const props = await resolveNotionPage(domain, rawPageId)
@@ -33,7 +33,7 @@ export async function getStaticPaths() {
33
const staticPaths = {
34
paths: Object.keys(siteMap.canonicalPageMap).map((pageId) => ({
35
params: {
36
- pageId
+ pageId: pageId.split('/')
37
}
38
})),
39
// paths: [],
0 commit comments