@envsync-cloud/deploy-cli 0.8.10 → 0.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4735,8 +4735,9 @@ function renderApiMaintenanceConf() {
|
|
|
4735
4735
|
function renderFrontendRuntimeConfig(config, generated) {
|
|
4736
4736
|
const hosts = domainMap(config.domain.root_domain);
|
|
4737
4737
|
const otelEndpoint = publicHttpsUrl(config, hosts.obs);
|
|
4738
|
+
const managementApiEnabled = !isOssConfig(config);
|
|
4738
4739
|
const activeReleaseVersion = generated.deployment.slots[generated.deployment.active_slot].release_version || config.release.version;
|
|
4739
|
-
const managementApiUrl =
|
|
4740
|
+
const managementApiUrl = managementApiEnabled ? publicHttpsUrl(config, hosts.manage_api) : "";
|
|
4740
4741
|
return `window.__ENVSYNC_RUNTIME_CONFIG__ = ${JSON.stringify({
|
|
4741
4742
|
apiBaseUrl: publicHttpsUrl(config, hosts.api),
|
|
4742
4743
|
appBaseUrl: publicHttpsUrl(config, hosts.app),
|