未验证 提交 99eedc4b 编写于 作者: G Giovanni Giordano 提交者: GitHub

Add quotes to static paths in fallback section (#12170)

上级 f3e6545b
......@@ -313,7 +313,7 @@ function Post({ post }) {
export async function getStaticPaths() {
return {
// Only `/posts/1` and `/posts/2` are generated at build time
paths: [{ params: { id: 1 } }, { params: { id: 2 } }],
paths: [{ params: { id: '1' } }, { params: { id: '2' } }],
// Enable statically generating additional pages
// For example: `/posts/3`
fallback: true,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册