
This example shows how to implement page based pagination with SSG in Next.js.
https://pagination-with-ssg.vercel.app
The first 5 paginated pages are cached in the edge at build time, and the rest are incrementally cached using ISR, that way we can avoid increasing build times no matter how many pages we have while still keeping essential pages cached from the start.
The example showcases a PLP (Product Listing Pages) where:
getStaticPaths
You can choose from one of the following two methods to use this repository:
Execute create-next-app with npm or Yarn to bootstrap the example:
Next, run Next.js in development mode:
Deploy it to the cloud with Vercel (Documentation).