react-notion-x
react-notion-x copied to clipboard
Changing Content in Notion does not reflect on Website without redeployment [Next.js]
trafficstars
Description
Here I set up a simple Next.js page with getStaticProps. The revalidate is set to 10 already, but changing on the Notion Page still does not change the content of the website (even with a hard reload, or incognito tab, delete cache, etc.)

However, when I made a similar page called draft with simple text like this. The data is up to date.

export async function getStaticProps() {
const recordMap = await notion.getPage(
parsePageId(
"https://www.notion.so/iant1359/beautifulliving-4f5542a8d593408ab8b9114db063c32e"
)
)
return { props: { recordMap }, revalidate: 10 }
}
const BeautifulLiving = ({ recordMap }) => {
return (
<S.BeautifulLiving>
<Section />
<NotionPage
recordMap={recordMap}
previewImagesEnabled={previewImagesEnabled}
/>
</S.BeautifulLiving>
)
}
Notion Test Page ID
Please include the ID of at least one publicly accessible Notion page related to your issue. Here is the public Notion Link https://iant1359.notion.site/beautifulliving-4f5542a8d593408ab8b9114db063c32e