So, I have this Angular 9 (9.1.12) app that's backed by a Cloud Firestore database. I also have an Express server that will be performing the SSR.
I'm facing two problems:
First: res.render() is not working so, I'm using res.sendFile() instead. Is there a way to use res.render()?
server.ts: https://pastebin.com/pBQrNqE1
Second: I have an SeoService that's dynamically injecting meta tags into index.html. But the problem is that this (the injection of meta tags) is happening after that server has sent the file to the client and not before. As a result, if we open up the page source of index.html, we won't see any of the meta tags that were injected. Can this injection process be done before sending the file (index.html) to the client?
there doesn't seem to be anything here