Skip to content

[feat]: Revalidate Notion page content #213

Open
@heyitsOK

Description

@heyitsOK

Description

On-demand revalidation and ISR is working for our top level page content on the website, however slug pages that render the Notion page content using react-notion-x are not updated until the website is rebuilt. We want our Notion content pages to be revalidated incrementally and on demand as well.

Suggested Solution

This is happening because the revalidate const is not exported on the slug pages, adding this constant will enable ISR on them. To enable on-demand revalidation the we will need to update the /api/revalidate routes to update the right paths. You may need to look into this on the Next.js documenation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions