nginx/angular/node.js root URL with prerender.io nginx/angular/node.js root URL with prerender.io nginx nginx

nginx/angular/node.js root URL with prerender.io


You need to set the window.prerenderReady variable. Thus, put this in your route controller:

window.prerenderReady = false;

... and this in your controller's success callback function:

window.prerenderReady = true;


I encountered the same problem not long ago.

Do you have a code fragment that prerender.io would not be able to run?

In my case, I was using platform.js (https://github.com/bestiejs/platform.js/), and was doing a test in my appComponent.ts about "platform.name". This was not existing in Prerender.io, and I was getting a blank page.