Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
99eedc4b
Unverified
Commit
99eedc4b
authored
Apr 24, 2020
by
Giovanni Giordano
Committed by
GitHub
Apr 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add quotes to static paths in fallback section (#12170)
parent
f3e6545b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
data-fetching.md
docs/basic-features/data-fetching.md
+1
-1
No files found.
docs/basic-features/data-fetching.md
View file @
99eedc4b
...
@@ -313,7 +313,7 @@ function Post({ post }) {
...
@@ -313,7 +313,7 @@ function Post({ post }) {
export
async
function
getStaticPaths
()
{
export
async
function
getStaticPaths
()
{
return
{
return
{
// Only `/posts/1` and `/posts/2` are generated at build time
// 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
// Enable statically generating additional pages
// For example: `/posts/3`
// For example: `/posts/3`
fallback
:
true
,
fallback
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment