Application not working correctly with SSG
I am trying to add SSG to my application but now I am in the dead end after trying several things and it is still not working correctly. The whole application can be found here (also with dist to see prerendered result): https://github.com/radek-stasta/radek-stasta.github.io/tree/ssg. I have added @angular/ssr, disabled ssr since I am just trying to add ssg, added routes.txt for my two testing routes, that are correctly prerendered in dist. Problem is, that no matter what I try, deployed built application is still performing javascript code, loading files from assets. Shouldn’t it just use prerendered page instead on specified path? Or am I missing something? In fact when I refresh page on selected route, it displays prerendered page for just a moment and then javascript code overwrites it. Some relevant sources:
Angular application not working correctly with SSG
I am trying to add SSG to my application but now I am in the dead end after trying several things and it is still not working correctly. The whole application can be found here (also with dist to see prerendered result): https://github.com/radek-stasta/radek-stasta.github.io/tree/ssg. I have added @angular/ssr, disabled ssr since I am just trying to add ssg, added routes.txt for my two testing routes, that are correctly prerendered in dist. Problem is, that no matter what I try, deployed built application is still performing javascript code, loading files from assets. Shouldn’t it just use prerendered page instead on specified path? Or am I missing something? In fact when I refresh page on selected route, it displays prerendered page for just a moment and then javascript code overwrites it. Some relevant sources: