Open aminick opened 2 years ago
getStaticPaths is used for dynamic url pages, such as blog posts /post/[id], hence It's unnecessary to use getStaticPath here.
getStaticPaths
/post/[id]
getStaticPath
In addition, there will be no query params available during static generation, thus anything that relies on query params can't not be static generated during build time.
getStaticPaths
is used for dynamic url pages, such as blog posts/post/[id]
, hence It's unnecessary to usegetStaticPath
here.