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
a25085f3
Commit
a25085f3
authored
Oct 29, 2019
by
Nataliya Karatkova
Committed by
Luis Alvarez D
Oct 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update static export example: clean up an extra query param (#9239)
parent
acf7d0ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
next.config.js
examples/with-static-export/next.config.js
+1
-4
No files found.
examples/with-static-export/next.config.js
View file @
a25085f3
...
...
@@ -12,10 +12,7 @@ module.exports = {
const
pages
=
postList
.
reduce
(
(
pages
,
post
)
=>
Object
.
assign
({},
pages
,
{
[
`/post/
${
post
.
id
}
`
]:
{
page
:
'/post/[id]'
,
query
:
{
id
:
post
.
id
}
}
[
`/post/
${
post
.
id
}
`
]:
{
page
:
'/post/[id]'
}
}),
{}
)
...
...
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