Revalidate custom 404 page with content from headless CMS
Unanswered
Manx posted this in #help-forum
ManxOP
I have a 404.tsx page and fetches data from a headless CMS.
Problem: Since 404.tsx page is generated at build time, new updated content from CMS does not show on 404 not-found page.
How do I revalivate to get updated content on a 404 page
Problem: Since 404.tsx page is generated at build time, new updated content from CMS does not show on 404 not-found page.
How do I revalivate to get updated content on a 404 page
1 Reply
@Manx I have a 404.tsx page and fetches data from a headless CMS.
Problem: Since 404.tsx page is generated at build time, new updated content from CMS does not show on 404 not-found page.
How do I revalivate to get updated content on a 404 page
You could tag the data with
fetch or unstable_cache and use revalidateTag to update the cache