Skip to content

Commit e924270

Browse files
authored
Default query to {}, same behaviour as next export (vercel#4466)
1 parent 2c3e8d3 commit e924270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ export default class Server {
264264
console.log('Defining routes from exportPathMap')
265265
const exportPathMap = await this.nextConfig.exportPathMap({}) // In development we can't give a default path mapping
266266
for (const path in exportPathMap) {
267-
const options = exportPathMap[path]
267+
const {page, query = {}} = exportPathMap[path]
268268
routes[path] = async (req, res, params, parsedUrl) => {
269-
await this.render(req, res, options.page, options.query, parsedUrl)
269+
await this.render(req, res, page, query, parsedUrl)
270270
}
271271
}
272272
}

0 commit comments

Comments
 (0)