Replies: 5 comments 3 replies
-
Follow this docs: https://github.com/angular/angularfire/blob/master/docs/deploy/getting-started.md |
Beta Was this translation helpful? Give feedback.
-
sorry i think i didn't explain myself well. The "ng deploy" command only builds the application in SSR mode, it does not build it in "prerender" mode. What I want is to build some pages in "prerender" mode and others in SSR mode. The repository documentation also talks about the old way of doing it, it is not updated to Angular 9. |
Beta Was this translation helpful? Give feedback.
-
I'm hoping to support prerendering in |
Beta Was this translation helpful? Give feedback.
-
Any updates on this? Has angular fires support for ng deploy been updated to include prerendering? |
Beta Was this translation helpful? Give feedback.
-
@jamesdaniels is this already implemented? @stuartcargill where exaclty should I put this snippet ? Tried here but no success |
Beta Was this translation helpful? Give feedback.
-
Version info
Angular: 9.1.11
Firebase: 7.15.1
AngularFire: 6.0.0
Other (e.g. Ionic/Cordova, Node, browser, operating system): Node 10
How to reproduce these conditions
Steps to set up and reproduce
Expected behavior
I would like that when doing "ng deploy" the web were published having 2 behaviors. 1, that the URLs chosen as "prerender" will be prerendered and those that are not, will be rendered via SSR.
Actual behavior
When i run "npm run prerender" and "ng deploy", fist generate code in "dist//browser" and server and the last statement generate code in "dist//dist//broswer and server" and this is what is finally uploaded and executed by the Firebase Function, and this is what is finally uploaded and executed by the function, ignoring what the "prerender" statement generated.
Beta Was this translation helpful? Give feedback.
All reactions