From 5dd1bdb95e48590e9ff184480b253f654227db31 Mon Sep 17 00:00:00 2001 From: Ryan Carniato Date: Tue, 7 Nov 2023 12:54:10 -0800 Subject: [PATCH] small fix --- packages/start-new/server/spa/handler.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/start-new/server/spa/handler.tsx b/packages/start-new/server/spa/handler.tsx index ad5b8daa9..8cf4bb25f 100644 --- a/packages/start-new/server/spa/handler.tsx +++ b/packages/start-new/server/spa/handler.tsx @@ -10,8 +10,7 @@ export function createHandler( export async function createPageEvent(ctx: FetchEvent) { const clientManifest = import.meta.env.MANIFEST["client"]; - const pageEvent: PageEvent = { - ...ctx, + const pageEvent: PageEvent = Object.assign(ctx, { manifest: await clientManifest.json(), assets: [...(await clientManifest.inputs[clientManifest.handler].assets())], routes: [], @@ -21,7 +20,7 @@ export async function createPageEvent(ctx: FetchEvent) { tags: [], $type: FETCH_EVENT, $islands: new Set() - }; + }); return pageEvent; }