ISR with slug route
Unanswered
PepeW posted this in #help-forum
PepeWOP
A
Adding:
Adding also:
The page is now static and will be regenerated every 10s (for a given slug).
But is it the "official" way to do ISR with slug routes ?
[slug] route is automatically set as a dynamic route when building.Adding:
export const revalidate = 10 will do nothing and the route will remain dynamic.Adding also:
export const dynamic = "force-static" works as expected.The page is now static and will be regenerated every 10s (for a given slug).
But is it the "official" way to do ISR with slug routes ?
1 Reply
PepeWOP
up