Lots of people use it together with Next.js, and an up-to-date example repo is really helpful then!
I updated my own project to Next.js 16 with React 19.2 today, and it worked, except for the fact that I needed to add this to my globals.d.ts file:
import { ThreeElements } from "@react-three/fiber";
declare module "react/jsx-runtime" {
namespace JSX {
interface IntrinsicElements extends ThreeElements {}
}
}
I am using the same tsconfig and default config as the create-next-app template.