This example shows how to do server side rendering with next.js (App Router) and InstantSearchNext. There's a live example here: https://codesandbox.io/p/devbox/github/algolia/instantsearch.js/tree/master/examples/react/next-app-router.
curl https://codeload.github.com/algolia/instantsearch/tar.gz/master | tar -xz --strip=3 instantsearch-master/examples/react/next-app-router
yarn install --no-lockfile
yarn run dev
Read more about React InstantSearchNext in our documentation.