Skip to content

Commit cddc023

Browse files
committed
fiks dobbel html-rendring
1 parent 9c160ef commit cddc023

File tree

1 file changed

+6
-1
lines changed
  • xp-archive/server/src/routing

1 file changed

+6
-1
lines changed

xp-archive/server/src/routing/site.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ const setupBrowserRoutes = async (router: Router, htmlRenderer: HtmlRenderer) =>
7474
return res.status(406).send('This content does not have an html representation.');
7575
}
7676

77-
const html = await htmlRenderer(req.url, { content });
77+
const contextContent = {
78+
...content,
79+
html: undefined,
80+
};
81+
82+
const html = await htmlRenderer(req.url, { content: contextContent });
7883
return res.send(html);
7984
});
8085
};

0 commit comments

Comments
 (0)