fix(angular): use production build for static-serve for MF (#18942)
This commit is contained in:
parent
407872f89e
commit
60da7977a7
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user