react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

Changing Content in Notion does not reflect on Website without redeployment [Next.js]

Open vader1359 opened this issue 3 years ago • 0 comments
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.)

image

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

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

vader1359 avatar Jun 22 '22 01:06 vader1359