-
Notifications
You must be signed in to change notification settings - Fork 483
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
fix(common): add serverTarget
for prerender
#2123
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.
LGTM, thanks for your contribution
Can you please format the code?
yarn ng-dev format changed
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, this is not the correct schematic, the problematic one is https://github.com/angular/universal/blob/master/modules/express-engine/schematics/install/index.ts
The changes here should be reverted
Add `serverTarget` for the prerender architect in the install schematic Closes #2120
@@ -118,9 +118,11 @@ function updateWorkspaceConfigRule(options: AddUniversalOptions): Rule { | |||
configurations: { | |||
production: { | |||
browserTarget: `${options.project}:build:production`, | |||
serverTarget: `${projectName}:server:production`, | |||
}, | |||
development: { | |||
browserTarget: `${options.project}:build:development`, |
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.
Mind changing this to projectName? 😀
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.
LGTM
@alan-agius4 you mean to change |
Other way. |
My browser was idle and I did not notice that the PR was actually merged 😁 Should I make a separate PR for the change that you propose? |
Sure, feel free to do a refactor PR |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Add
serverTarget
for the prerender architect in the add schematicCloses #2120