Skip to content

Commit

Permalink
Fix page.params creation in server rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyhwang committed Apr 18, 2024
1 parent cfce073 commit 38c89fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/PageForServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ function stringifyBundle(bundle) {

// TODO: Cleanup; copied from tracks
function pageParams(req) {
var params = Object.create(null, {
var params = Object.create(null)
Object.assign(params, {
url: req.url,
body: req.body,
query: req.query,
Expand Down

0 comments on commit 38c89fc

Please sign in to comment.