Changes to SSR

This commit is contained in:
ItzMineyy committed 2024-12-25 17:01:04 +01:00
1 parent 06ab3b06bd
commit 8ccee4a70f
7 files changed
+21 -10

No files matched your search

+2 -5
View File
@@ -41,11 +41,8 @@ app.use(
* Handle all other requests by rendering the Angular application.
*/
app.use('/**', (req, res, next) => {
angularApp
.handle(req)
.then((response) =>
response ? writeResponseToNodeResponse(response, res) : next(),
)
angularApp.handle(req)
.then(response => response ? res.send(response) : next())
.catch(next);
});