Is the template SSR / Server Side Rendering compatible for Angular apps?
Hi @rafsanulhasan! Currently, it isn't supported by the nebular but we are working on this feature.
Hello! Can I work on this issue?
Hi @anushasingh, for sure that would be great! We can discuss the details here to agree on solution.
Hello @nnixaa, I am thinking to follow the instructions given in the link: https://github.com/angular/angular-cli/wiki/stories-universal-rendering for the integration of angular universal. Would this be the correct way to go for this specific project? I am a beginner and would love to work on this.
As far as I can tell - yes it would. So let's try and then once you have a very first bunch - just push a pull request so that we can see how it goes. Really looking forward to it! 馃憤
Okay, I will do that :)
Updates on this issue?
Hi,
FYR I implemented SSR with Nest server in my mean stack: https://github.com/cj-wang/mean-start-2
Still some issue with menu and sidebar, DI errors in the ssr server, but kind of working.
And the demo is very slow due to free Heroku instance.
hi everyone, is there any progress on SSR ?
having an angular app with SSR is really bad for SEO....
@cj-wang I've left an issue comment on your repo. Did you get any provider issues with NbMenuService while implementing universal?
I'm kinda stuck on that at the moment
Also, why have you used a custom HTTP interceptor in your app.server.module.ts ?
@captainjackrana I don't have that error anymore. probably have fixed it by upgrading Nebular.
The custom interceptor is for absolute URLs for server requests: https://angular.io/guide/universal#using-absolute-urls-for-server-requests
And you'll need to handle authentication properly on server side as well, otherwise the server page will always jump to the login page without the correct token set.
Please refer to this: https://github.com/angular/universal-starter/issues/373#issuecomment-527021529