Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Server Side Pre-rendering supported for the project? #1364

Open
rafsanulhasan opened this issue Nov 3, 2017 · 11 comments
Open

Is Server Side Pre-rendering supported for the project? #1364

rafsanulhasan opened this issue Nov 3, 2017 · 11 comments

Comments

@rafsanulhasan
Copy link

rafsanulhasan commented Nov 3, 2017

Is the template SSR / Server Side Rendering compatible for Angular apps?

@Tibing
Copy link
Member

Tibing commented Nov 12, 2017

Hi @rafsanulhasan! Currently, it isn't supported by the nebular but we are working on this feature.

@Tibing Tibing closed this as completed Nov 12, 2017
@nnixaa nnixaa reopened this Nov 13, 2017
@anushasingh
Copy link

Hello! Can I work on this issue?

@nnixaa
Copy link
Collaborator

nnixaa commented Jan 16, 2018

Hi @anushasingh, for sure that would be great! We can discuss the details here to agree on solution.

@anushasingh
Copy link

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.

@nnixaa
Copy link
Collaborator

nnixaa commented Jan 16, 2018

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! 👍

@anushasingh
Copy link

Okay, I will do that :)

@marchrius
Copy link

Updates on this issue?

@cj-wang
Copy link

cj-wang commented Mar 12, 2019

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.

@aorfevre
Copy link

hi everyone, is there any progress on SSR ?
having an angular app with SSR is really bad for SEO....

@captainjackrana
Copy link

captainjackrana commented Jan 9, 2020

@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 ?

@cj-wang
Copy link

cj-wang commented Jan 10, 2020

@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: angular/universal-starter#373 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants