Next.js Discord

Discord Forum

ISR Limitations?

Unanswered
Netherland Dwarf posted this in #help-forum
Open in Discord
Netherland DwarfOP
Is this a limitation in nextjs, say i have /homes route that shows a list of homes, but I want that list to be paginated and also some prerendered. Simultaneously my home detail page needs to be /home/[id] which will also have some of the detail pages prerendered. This does not seem possible without without changing the routes the only way to do pagination for /homes using ISR is /homes/[page]. Or is there another way to approach this?

1 Reply

Siberian Flycatcher
say i have /homes route that shows a list of homes, but I want that list to be paginated

This does not seem possible without without changing the routes the only way to do pagination for /homes using ISR is /homes/[page]

Could you clarify the question? Pagination assumes that you would have routes for every page /homes/[page]