File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
libs/native-federation/src/builders/build Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -117,11 +117,6 @@ export async function* runBuilder(
117117 return ;
118118 }
119119
120- let options = ( await context . validateOptions (
121- targetOptions ,
122- builder
123- ) ) as JsonObject & ApplicationBuilderOptions ;
124-
125120 /**
126121 * Explicitly defined as devServer or if the target contains "serve"
127122 */
@@ -130,6 +125,16 @@ export async function* runBuilder(
130125 ? ! ! nfOptions . devServer
131126 : target . target . includes ( 'serve' ) ;
132127
128+ let options = ( await context . validateOptions (
129+ runServer
130+ ? {
131+ ...targetOptions ,
132+ port : nfOptions . port || targetOptions [ 'port' ] ,
133+ }
134+ : targetOptions ,
135+ builder
136+ ) ) as JsonObject & ApplicationBuilderOptions ;
137+
133138 let serverOptions = null ;
134139
135140 const write = true ;
You can’t perform that action at this time.
0 commit comments