https://github.com/folsze/styles-break-after-adding-ssr
this is the MRE
the header shows up fine in the first commit but in the last commit, after SSR was added, it's missing styles
this is the relevant code:
I am prerendering all routes. Somehow the CSS goes missing...
For the sake of completeness, here is my full SO post:
https://stackoverflow.com/questions/79947387/after-changing-from-csr-to-ssr-with-ionic-angular-app-ionic-styles-do-not-apply
Some relevant code here, but really the whole app is relevant:
import { RenderMode, ServerRoute } from '@angular/ssr';
export const serverRoutes: ServerRoute[] = [
{
path: '**',
renderMode: RenderMode.Prerender
}
];
GitHub
After adding angular/ssr, the header component styles went missing - folsze/styles-break-after-adding-ssr