Revalidate Path externally #65474
Unanswered
LuizHAP
asked this question in
App Router
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Today we have a inbound CMS that control promotions (publishing, unpublishing, draft). Is it possibile with revalidatePath to only revalidate a path (ex home) by a outside trigger?
Example: I have a cron on CMS, that check if a promotion is valid (by date), and today is the "live day" for it. My cron on CMS runs, I want to put in my home that published data. Can I create a path inside of Nextjs that runs
revalidatePath('/')
? Will work as inteded?Beta Was this translation helpful? Give feedback.
All reactions