next.js
91dba7d1 - Fix: Throw an error for empty array return in `generateStaticParams` with `output:export` (#57053)

Commit
2 years ago
Fix: Throw an error for empty array return in `generateStaticParams` with `output:export` (#57053) Fixes #57038 # What? Added an error message when `generateStaticParams` returns an empty array with `output:export`. # Why? To provide developers with clear feedback when `generateStaticParams` is not used correctly. # How? Modified the condition checks around the use of `generateStaticParams` to include a check for an empty array and added a corresponding error message. --------- Co-authored-by: Steven <steven@ceriously.com>
Author
Parents
Loading