NotionのページのBlockをgetServerSidePropsで取得するコードを書いた
export const getServerSideProps = async () => { const response = await getChildrenInBlock({ block_id: previewPageId, page_size: 5, }); return { props: { blocks: response.results as ExpandedBlockObjectResponse[], }, };};
これがリクエストの度に最新のNotionのデータを取得するかを確認したい
H1 tag
H2 tag
H3 tag
Bookmark