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') {
|
if (options.mfType === 'remote') {
|
||||||
appConfig.targets['serve-static'] = {
|
appConfig.targets['serve-static'] = {
|
||||||
executor: '@nx/web:file-server',
|
executor: '@nx/web:file-server',
|
||||||
defaultConfiguration: 'development',
|
defaultConfiguration: 'production',
|
||||||
options: {
|
options: {
|
||||||
buildTarget: `${options.appName}:build`,
|
buildTarget: `${options.appName}:build`,
|
||||||
port: options.port,
|
port: options.port,
|
||||||
|
|||||||
@ -35,7 +35,7 @@ export function updateModuleFederationProject(
|
|||||||
// `serve-static` for remotes that don't need to be in development mode
|
// `serve-static` for remotes that don't need to be in development mode
|
||||||
projectConfig.targets['serve-static'] = {
|
projectConfig.targets['serve-static'] = {
|
||||||
executor: '@nx/web:file-server',
|
executor: '@nx/web:file-server',
|
||||||
defaultConfiguration: 'development',
|
defaultConfiguration: 'production',
|
||||||
options: {
|
options: {
|
||||||
buildTarget: `${options.projectName}:build`,
|
buildTarget: `${options.projectName}:build`,
|
||||||
port: options.devServerPort,
|
port: options.devServerPort,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user