diff --git a/README.md b/README.md index 04dd061..4fc6e21 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ To enable verbose logging add folowing in webpack config: |-----------------------------------------:|:--------------------:|:-------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `disableTypeCompilation` | `boolean` | `false` | Disable compilation of types | | `disableDownladingRemoteTypes` | `boolean` | `false` | Disable downloading of remote types | -| `cloudbedsRemoteManifestsBaseUrl` | `string` | `'/remotes/dev-ga'` | Base URL for remote manifest files (a.k.a remote entry configs) that is specific to Cloudbeds microapps

_ Examples:_
`http://localhost:4480/remotes/dev`
`https://cb-front.cloudbeds-dev.com/remotes/[env]`
`use-devbox-name` | +| `cloudbedsRemoteManifestsBaseUrl` | `string` | `'/remotes/dev-ga'` | Base URL for remote manifest files (a.k.a remote entry configs) that is specific to Cloudbeds microapps

_ Examples:_
`http://localhost:4480/remotes/dev`
`https://cb-front.cloudbeds-dev.com/remotes/[env]`
`use-domain-name` | | `doNotUseCloudbedsRemoteManifests` | `boolean` | `false` | Disable downloading default remote manifest files for Cloudbeds microapps (`mfd-common-remote-entry.json` and `mfd-remote-entries.json` files) and download only those provided via `remoteManifestUrls` | | `downloadTypesWhenIdleIntervalInSeconds` | `number`, `-1` | `60` | Synchronize types continusouly - compile types after every compilation, download when idle with a specified delay value in seconds.

`-1` - disables continuous synchronization (compile and download will happen only on startup). | | `remoteManifestUrls` | `RemoteManifestUrls` | `{}` | URLs to remote manifest files. A manifest contains a URL to a remote entry that is substituted in runtime. Multiple remote entries is supported via `registry` field.

More details available in [this section](#templated-remote-urls) | diff --git a/src/helpers/cloudbedsRemoteManifests.ts b/src/helpers/cloudbedsRemoteManifests.ts index c76f854..6777240 100644 --- a/src/helpers/cloudbedsRemoteManifests.ts +++ b/src/helpers/cloudbedsRemoteManifests.ts @@ -9,7 +9,7 @@ import { ModuleFederationTypesPluginOptions, RemoteManifestUrls } from '../types export function getRemoteManifestUrls(options?: ModuleFederationTypesPluginOptions): RemoteManifestUrls | undefined { if (!options?.doNotUseCloudbedsRemoteManifests) { let baseUrl = options?.cloudbedsRemoteManifestsBaseUrl; - if (!baseUrl || baseUrl === 'use-devbox-name') { + if (!baseUrl || baseUrl === 'use-domain-name') { baseUrl = `${CLOUDBEDS_DEV_FRONTEND_ASSETS_DOMAIN}/remotes/dev-ga`; } return { diff --git a/src/types.ts b/src/types.ts index 9adc3fa..10d5a4c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -26,7 +26,7 @@ export type RemoteManifestUrls = Record<'registry' | string, string>; export type ModuleFederationPluginOptions = ConstructorParameters[0]; export type ModuleFederationTypesPluginOptions = { - cloudbedsRemoteManifestsBaseUrl?: string | 'use-devbox-name', + cloudbedsRemoteManifestsBaseUrl?: string | 'use-domain-name', disableDownladingRemoteTypes?: boolean, disableTypeCompilation?: boolean, doNotUseCloudbedsRemoteManifests?: boolean,