Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Nov 7, 2023
1 parent ddad4e1 commit 5dd1bdb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/start-new/server/spa/handler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand All @@ -21,7 +20,7 @@ export async function createPageEvent(ctx: FetchEvent) {
tags: [],
$type: FETCH_EVENT,
$islands: new Set<string>()
};
});

return pageEvent;
}

0 comments on commit 5dd1bdb

Please sign in to comment.