mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-09 07:26:47 +00:00
@@ -24,6 +24,7 @@ const Index = props => {
|
|||||||
export async function getServerSideProps ({ params: { keyword } }) {
|
export async function getServerSideProps ({ params: { keyword } }) {
|
||||||
const props = await getGlobalNotionData({ from: 'search-props', pageType: ['Post'] })
|
const props = await getGlobalNotionData({ from: 'search-props', pageType: ['Post'] })
|
||||||
props.posts = await filterByMemCache(props.allPosts, keyword)
|
props.posts = await filterByMemCache(props.allPosts, keyword)
|
||||||
|
props.keyword = keyword
|
||||||
return {
|
return {
|
||||||
props
|
props
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user