Skip to content

Commit

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

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

0 comments on commit 5589361

Please sign in to comment.