While deploying a new NextJS app to Vercel, we got a 404 NOT_FOUND ID: ‘…’ and because it was using the route groups it seemed there was an issue but later on checking the deployments the project was under “Other” frameworks. Differently from other deployments that it detected NextJS automatically, this one had to manually change, under Project Settings to “Next.js” and redeploying the project worked like a charm.
More useful information.