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
|
} => typeof r !== 'string' && r.remoteName === app
|
||||||
)?.configuration;
|
)?.configuration;
|
||||||
|
|
||||||
const overrides =
|
const defaultOverrides = {
|
||||||
target === 'serve'
|
|
||||||
? {
|
|
||||||
watch: true,
|
|
||||||
...(options.host ? { host: options.host } : {}),
|
...(options.host ? { host: options.host } : {}),
|
||||||
...(options.ssl ? { ssl: options.ssl } : {}),
|
...(options.ssl ? { ssl: options.ssl } : {}),
|
||||||
...(options.sslCert ? { sslCert: options.sslCert } : {}),
|
...(options.sslCert ? { sslCert: options.sslCert } : {}),
|
||||||
...(options.sslKey ? { sslKey: options.sslKey } : {}),
|
...(options.sslKey ? { sslKey: options.sslKey } : {}),
|
||||||
|
};
|
||||||
|
const overrides =
|
||||||
|
target === 'serve'
|
||||||
|
? {
|
||||||
|
watch: true,
|
||||||
...(isUsingModuleFederationDevServerExecutor
|
...(isUsingModuleFederationDevServerExecutor
|
||||||
? { isInitialHost: false }
|
? { isInitialHost: false }
|
||||||
: {}),
|
: {}),
|
||||||
|
...defaultOverrides,
|
||||||
}
|
}
|
||||||
: {};
|
: { ...defaultOverrides };
|
||||||
|
|
||||||
remoteIters.push(
|
remoteIters.push(
|
||||||
await runExecutor(
|
await runExecutor(
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user