Overview
I created a sample repository for using clover-iiif with Next.js, so here are my notes.
https://clover-iiif-demo.vercel.app/

Background
clover-iiif is described as follows.
https://github.com/samvera-labs/clover-iiif
Extensible IIIF front-end toolkit and Manifest viewer. Accessible. Composable. Open Source.
We will use this with Next.js.
Data
“Koui Genji Monogatari (held by the National Diet Library)” is used as sample data.
https://dl.ndl.go.jp/pid/3437686
Repository
It is published at the following link.
https://github.com/nakamura196/clover-iiif-demo
I referenced the following.
https://samvera-labs.github.io/clover-iiif/docs/composing
For client-side execution, the following workaround was necessary.
Summary
There may be some incomplete aspects, but I hope this serves as a helpful reference.