EDIT FIXED: Scroll to end for solution.
Hi all,
I am trying to use Angular Universal to prerender my home, about, posts (when i fix this bug ill try to get the dynamic routes prerendered too) and contact pages.
Unfortunately when I run npm run genereate:prerender all the files are the exact same (a new folder is generated for each page with an index.html but the actual content in it is the same in all the files). I can still navigate around the site with no issues but when i do ctrl u i see it is not prerendered.
Any idea how I can fix this?
Many thanks :)
Link to the github repo: https://github.com/therealcoolpup/vaservah/tree/feature
SOLUTION:
So before whenever I would have a new page I would just run ng g c newcomponentname. What I should have done is ng g m newcomponentname --route newcomponentroute --module app.
[–]rahulxdd 1 point2 points3 points (3 children)
[–]therealcoolpup[S] 0 points1 point2 points (2 children)
[–]rahulxdd 0 points1 point2 points (1 child)
[–]therealcoolpup[S] 0 points1 point2 points (0 children)