GetStaticPathsInvalidRouteParam: Invalid getStaticPaths route parameter for
KEY. Expected undefined, a string or a number, received
What went wrong?Section titled What went wrong?
params are encoded into the URL, only certain types are supported as values.
In routes using rest parameters,
undefined can be used to represent a path with no parameters passed in the URL: