-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0aa4bd2
commit a3b8850
Showing
4 changed files
with
44 additions
and
9 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...t/getting-started/src/pages/category/[categorySlug]/[paginationTerm]/[categoryCursor].tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { GetStaticPropsContext } from 'next'; | ||
import Page from 'pages/category/[categorySlug]'; | ||
import { getNextStaticProps } from '@wpengine/headless-next'; | ||
|
||
export default Page; | ||
|
||
export async function getStaticProps(context: GetStaticPropsContext) { | ||
return getNextStaticProps(context, { | ||
Page, | ||
}); | ||
} | ||
|
||
export function getStaticPaths() { | ||
return { | ||
paths: [], | ||
fallback: 'blocking', | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters