Skip to content

Commit

Permalink
fix(node): add missing production configuration for serve target in a…
Browse files Browse the repository at this point in the history
…pp generator (nrwl#10988)
  • Loading branch information
nartc authored Jul 5, 2022
1 parent b2203d8 commit 2753c11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/node/src/generators/application/application.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ describe('app', () => {
options: {
buildTarget: 'my-node-app:build',
},
configurations: {
production: {
buildTarget: 'my-node-app:build:production',
},
},
},
})
);
Expand Down
5 changes: 5 additions & 0 deletions packages/node/src/generators/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ function getServeConfig(options: NormalizedSchema): TargetConfiguration {
options: {
buildTarget: `${options.name}:build`,
},
configurations: {
production: {
buildTarget: `${options.name}:build:production`,
},
},
};
}

Expand Down

0 comments on commit 2753c11

Please sign in to comment.