动态路由所需的 getStaticPaths() 函数。
GetStaticPathsRequired:动态路由需要
getStaticPaths()
功能。确保你从动态路由中export
了getStaticPaths
功能。¥GetStaticPathsRequired:
getStaticPaths()
function is required for dynamic routes. Make sure that youexport
agetStaticPaths
function from your dynamic route.
什么地方出了错?
Section titled 什么地方出了错?¥What went wrong?
在 静态模式 中,所有路由都必须在构建时确定。因此,动态路由必须 export
和 getStaticPaths
函数返回不同的路径来生成。
¥In Static Mode, all routes must be determined at build time. As such, dynamic routes must export
a getStaticPaths
function returning the different paths to generate.
也可以看看:
¥See Also:
Error Reference