-
Notifications
You must be signed in to change notification settings - Fork 2.2k
docs(): guide for Angular Universal SSR #1686
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm install --save-dev express webpack-cli ts-loader ws xmlhttprequest should adding webpack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it will be more relevant if this guide shows how to leverage firebase cloud functions
|
@somombo I worked on SSR on Cloud Functions this weekend, but was not able to get it fully working in production. It's possible to deploy a function that works locally, but Universal will fail with the following error when it goes live. Not sure how to fix it yet... |
| ```js | ||
| "scripts": { | ||
| // ... omitted | ||
| "build:ssr": "ng build --prod && ng run YOUR_PROJECT_NAME:server && npm run webpack:ssr", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it worth mentioning that ng run YOUR_PROJECT_NAME:server will actually use the dev configuration, i.e. environment.ts and not environment.prod.ts, while ng build --prod is actually building the client for production?
Checklist
yarn install,yarn testrun successfully? yesDescription
Step by step guide for Angular v6 Universal SSR