fix(react): full support custom secure host for module federation (#25288)
## Related Issue(s) Fixes # https://github.com/nrwl/nx/issues/21210 Co-authored-by: Vadim Goy <vadim.goy@zoominfo.com>
This commit is contained in:
parent
7f11a1d7d3
commit
b9e190d22b
@ -127,19 +127,23 @@ async function startRemotes(
|
||||
} => typeof r !== 'string' && r.remoteName === app
|
||||
)?.configuration;
|
||||
|
||||
const defaultOverrides = {
|
||||
...(options.host ? { host: options.host } : {}),
|
||||
...(options.ssl ? { ssl: options.ssl } : {}),
|
||||
...(options.sslCert ? { sslCert: options.sslCert } : {}),
|
||||
...(options.sslKey ? { sslKey: options.sslKey } : {}),
|
||||
};
|
||||
const overrides =
|
||||
target === 'serve'
|
||||
? {
|
||||
watch: true,
|
||||
...(options.host ? { host: options.host } : {}),
|
||||
...(options.ssl ? { ssl: options.ssl } : {}),
|
||||
...(options.sslCert ? { sslCert: options.sslCert } : {}),
|
||||
...(options.sslKey ? { sslKey: options.sslKey } : {}),
|
||||
...(isUsingModuleFederationDevServerExecutor
|
||||
? { isInitialHost: false }
|
||||
: {}),
|
||||
...defaultOverrides,
|
||||
}
|
||||
: {};
|
||||
: { ...defaultOverrides };
|
||||
|
||||
remoteIters.push(
|
||||
await runExecutor(
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user