未验证 提交 156a7740 编写于 作者: A Armand Abric 提交者: GitHub

Fix typo in invalid getStaticPaths value example (#10657)

上级 7767a42f
......@@ -9,7 +9,7 @@ In one of the page's `unstable_getStaticPaths` the return value had the incorrec
Make sure to return the following shape from `unstable_getStaticPaths`:
```js
export async function unstable_getStaticProps() {
export async function unstable_getStaticPaths() {
return {
paths: Array<string | { params: { [key: string]: string } }>
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册