Skip to content

Commit

Permalink
Add quotes to static paths in fallback section (vercel#12170)
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannigiordano authored and rokinsky committed Jul 11, 2020
1 parent b38d695 commit 9623de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-features/data-fetching.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9623de7

Please sign in to comment.