Skip to content

Commit

Permalink
fix(angular): use production build for static-serve for MF (#18942)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 authored Sep 1, 2023
1 parent 407872f commit 60da797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function setupServeTarget(host: Tree, options: Schema) {
if (options.mfType === 'remote') {
appConfig.targets['serve-static'] = {
executor: '@nx/web:file-server',
defaultConfiguration: 'development',
defaultConfiguration: 'production',
options: {
buildTarget: `${options.appName}:build`,
port: options.port,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function updateModuleFederationProject(
// `serve-static` for remotes that don't need to be in development mode
projectConfig.targets['serve-static'] = {
executor: '@nx/web:file-server',
defaultConfiguration: 'development',
defaultConfiguration: 'production',
options: {
buildTarget: `${options.projectName}:build`,
port: options.devServerPort,
Expand Down

0 comments on commit 60da797

Please sign in to comment.