Reproduce nextjs-generate-static-params-validation from its authentic engineer request.
Reproduce nextjs-generate-static-params-validation from its authentic engineer request.: a task in nextjs-selfbench (Harbor dataset). generateStaticParams must return an array of parameter objects. Add validation so invalid return values fail with a clear error that identifies generateStaticParams…
The task
`generateStaticParams` must return an array of parameter objects. Add validation so invalid return values fail with a clear error that identifies `generateStaticParams` and the expected shape. Throw when the returned value is not an array, and throw when any item in the returned array is not an object. Continue…
Part of dari-ai/nextjs-selfbench.