This repository was archived by the owner on Nov 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Keen Yee Liau
committed
Feb 6, 2020
1 parent
e05ca5d
commit 3aa454d
Showing
2 changed files
with
155 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
3aa454d
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.
Congrats for the release. I couldn’t find any docs regarding setting up SSR on Angular 9. Not sure if there is a sample repo for this and also whether you guys have any kind of migration process from 7/8 to 9 if any. Cheers
3aa454d
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.
Hi, here’s some useful links;
https://angular.io/guide/universal
https://trilon.io/blog/angular-universal-v9-whats-new
https://update.angular.io/#8.0:9.0 (Under Advanced)
3aa454d
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.
Many thanks for this!
3aa454d
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.
Followed the guide @alan-agius4 , and got this:
Is there any obvious mistake you can think of?
3aa454d
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.
Actually what did happen was that the new SSR entry point (
main.js
is now placed in thedist/server/main.js
path) whereas before it was atdist/server.js
. So in theory I was targeting the "old" version of the server with the new code. All works like a charm. Very nice! Thanks