Replies: 1 comment 1 reply
-
|
@mjarosch to make sure I understand the question correctly: you're asking if there is, or will be, a mechanism to configure revalidation on the fly via an environment value (as it was in Pages router). Is that correct? Generally speaking, our plans for ISR is to make Next JS's tag-based revalidation work nicely with Content SDK, allowing for more precise content regeneration. Cache components support is already present with next 16 upgrade, and this will be the follow up. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Description
With Page Router, we were able to use Environment Variables to set the revalidation time in getStaticProps. With the switch to App Router, you can add
export const revalidate = [value];to the page, but it needs to be a hard coded value. If you usefetchon the page, which I assume happens in the CSDK call on the page, you can set it there with a variable value. Are there thoughts or plans on how to support ISR in AppRouter?Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions