I have an Angular 7 application where I am trying to pre-render pages to support web crawlers / SEO. I've decided I want to use prerender.io to facilitate the pre-rendering, caching, and serving of static HTML to these crawlers, but I'm struggling to install their middleware in my Angular 7 app.
I am trying to figure out if I can use prerender.io in a purely client-side manner, as I am not serving angular from a Node server, I am just hosting static files in a CDN. According to their docs, there is a middleware I can install that will detect when a web crawler makes a page request, and redirects the request to the pre-rendering server. However, all the examples I find involve modifying some backend node server. Can't I do this all client-side?
My questions are: does angular have the concept of a root-level app (I'm assuming it does), and if so, is it possible to install the prerender.io middleware such that it functions in a manner I described above?
It seems like there are a few tutorials for AngularJS, but things have changed quite a bit since then. Any help would be appreciated!