Invalid value returned by a getStaticPaths path.
InvalidGetStaticPathParam: Invalid params given to
getStaticPaths
path. Expected anobject
, gotPARAM_TYPE
(E03010)
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: