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

Request an example for official Angular SSR setup #149

Open
maxisam opened this issue May 31, 2021 · 5 comments
Open

Request an example for official Angular SSR setup #149

maxisam opened this issue May 31, 2021 · 5 comments

Comments

@maxisam
Copy link

maxisam commented May 31, 2021

First of all, this one doesn't work.

https://blog.nrwl.io/nx-workspace-schematics-server-side-rendering-ssr-with-angular-universal-afc04ead55

It would be great to have SSR in this example, so we can always keep track on it.

Most of the examples I have seen put SSR within the angular app. It seems like it is the only way. However, it seems like against the whole nx architecture.

Here is the setup having ssr inside the angular app https://github.com/jared-christensen/nx-angular-universal

However, it doesnt work in NX v12. It works in NX v11

jared-christensen/nx-angular-universal#1

@s4m0r4m4
Copy link

I second this request, there are so many half-baked, out-of-date guides out there that it can lead to a ton of confusion.

@ciriousjoker
Copy link

This would be great. Can this be considered maybe?

@monkeycatdog
Copy link

hey, it's still relevant. does anybody able to perform an example? spent over 2 hours to find and try something, no results

@shaiful-dynasty
Copy link

I'm using this generator https://nx.dev/packages/angular/generators/setup-ssr to generate Angular SSR file. Is this the official way?

nx generate setup-ssr project-name

@jackmorizo
Copy link

After the update to nx16 in our company we have the problem that all our release-pipelines fail because neither the server artifacts nor the prerendered build-artifacts get build .. the funny thing is that the build-pipelines output nothing strange .. the error occurs when the pipeline hits existing cashed artifacts and the the @nx/angular:webpack-browser executor even reports that the build was successfull .. but the artifacts in the dist folder are missing

Please also explain more in detail what @nx/angular:setup-ssr is supposed to do (which files it creates, touches and how they are modified)

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

No branches or pull requests

6 participants