Next.js Discord

Discord Forum

ISR with slug route

Unanswered
PepeW posted this in #help-forum
Open in Discord
A [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

up