Invalid entry inside getStaticPaths()'s return value.
هذا المحتوى غير متوفر بلغتك بعد.
InvalidGetStaticPathsEntry: Invalid entry returned by
getStaticPaths(). Expected an object, gotENTRY_TYPE.
What went wrong?
Section titled “What went wrong?”getStaticPaths()’s return value must be an array of objects. In most cases, this error happens because an array of arrays was returned. Using .flatMap() or a .flat() call may be useful.
export async function getStaticPaths() { return [ // <-- Array { params: { slug: "blog" } }, // <-- Object { params: { slug: "about" } } ];}See Also:
Error Reference