Skip to content

Commit 258df04

Browse files
puku0xalexeagle
authored andcommitted
fix(@schematics/angular): add serverTarget to app shell production configuration
1 parent 0909943 commit 258df04

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/schematics/angular/app-shell/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ function addAppShellConfigToWorkspace(options: AppShellOptions): Rule {
194194
configurations: {
195195
production: {
196196
browserTarget: `${options.clientProject}:build:production`,
197+
serverTarget: `${options.clientProject}:server:production`,
197198
},
198199
},
199200
};

packages/schematics/angular/app-shell/index_spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ describe('App Shell Schematic', () => {
6969
expect(target.options.serverTarget).toEqual('bar:server');
7070
expect(target.options.route).toEqual('shell');
7171
expect(target.configurations.production.browserTarget).toEqual('bar:build:production');
72+
expect(target.configurations.production.serverTarget).toEqual('bar:server:production');
7273
});
7374

7475
it('should add router module to client app module', () => {

0 commit comments

Comments
 (0)