Przejdź do głównej zawartości

Missing params property on getStaticPaths route.

Ta treść nie jest jeszcze dostępna w Twoim języku.

GetStaticPathsExpectedParams: Missing or empty required params property on getStaticPaths route.

Every route specified by getStaticPaths require a params property specifying the path parameters needed to match the route.

For instance, the following code:

pages/blog/[id].astro
---
export async function getStaticPaths() {
return [
{ params: { id: '1' } }
];
}
---

Will create the following route: site.com/blog/1.

See Also:

Pomóż nam

Jak chcesz ją przekazać?

Otwórz Issue na GitHubie

Najszybszy sposób na powiadomienie nas o problemie.

Społeczność
京ICP备15031610号-99