From 55893617fe9b3587adcdeca912e446cf78881277 Mon Sep 17 00:00:00 2001 From: Eric Hwang Date: Thu, 18 Apr 2024 14:01:40 -0700 Subject: [PATCH] Fix page.params creation in server renderStatic --- src/PageForServer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PageForServer.ts b/src/PageForServer.ts index 810f38d9..719e3fac 100644 --- a/src/PageForServer.ts +++ b/src/PageForServer.ts @@ -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,