Invalid value returned by a route from getStaticPaths().
InvalidGetStaticPathParam: Invalid
paramsvalue returned by a route fromgetStaticPaths(). Expected anobject, gotPARAM_TYPE.
What went wrong?
Section titled “What went wrong?”The params property in getStaticPaths()’s return value (an array of objects) should also be an object.
---export async function getStaticPaths() { return [ { params: { slug: "blog" } }, { params: { slug: "about" } } ];}---See Also:
Error Reference