@camunda8/orchestration-cluster-api 10.0.0-alpha.49 → 10.0.0-alpha.50

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.
@@ -13148,6 +13148,11 @@ var SCHEMA = {
13148
13148
  aliases: ["ZEEBE_REST_ADDRESS"],
13149
13149
  doc: "Base REST endpoint address. Legacy alias: ZEEBE_REST_ADDRESS (used only when CAMUNDA_REST_ADDRESS is unset)."
13150
13150
  },
13151
+ CAMUNDA_REST_ADDRESS_EXACT: {
13152
+ type: "boolean",
13153
+ default: false,
13154
+ doc: "Disable the automatic /v2 suffix so CAMUNDA_REST_ADDRESS is used as the base path. The value is still normalized (surrounding whitespace and trailing slashes are trimmed) \u2014 this option only suppresses the /v2 append, it does not preserve the address byte-for-byte. Useful for gateway/reverse-proxy deployments whose base path does not follow the /v2 convention."
13155
+ },
13151
13156
  CAMUNDA_SDK_HTTP_RETRY_MAX_ATTEMPTS: {
13152
13157
  desc: "Maximum total HTTP attempts (including the initial attempt) for transient failures (429,503, network).",
13153
13158
  type: "int",
@@ -13707,10 +13712,13 @@ function hydrateConfig(options = {}) {
13707
13712
  if (isSecret(k) && v) redacted[k] = redactSecret(v);
13708
13713
  else redacted[k] = v;
13709
13714
  }
13715
+ const _restAddressExact = reqBool("CAMUNDA_REST_ADDRESS_EXACT");
13710
13716
  let _restAddress = reqStr("CAMUNDA_REST_ADDRESS");
13711
13717
  if (_restAddress) {
13712
13718
  _restAddress = _restAddress.trim();
13713
- if (!/\/v2\/?$/i.test(_restAddress)) {
13719
+ if (_restAddressExact) {
13720
+ _restAddress = _restAddress.replace(/\/+$/, "");
13721
+ } else if (!/\/v2\/?$/i.test(_restAddress)) {
13714
13722
  _restAddress = `${_restAddress.replace(/\/+$/, "")}/v2`;
13715
13723
  } else {
13716
13724
  }
@@ -14296,7 +14304,7 @@ function createLogger(opts = {}) {
14296
14304
  }
14297
14305
 
14298
14306
  // src/runtime/version.ts
14299
- var packageVersion = "10.0.0-alpha.49";
14307
+ var packageVersion = "10.0.0-alpha.50";
14300
14308
 
14301
14309
  // src/runtime/supportLogger.ts
14302
14310
  var NoopSupportLogger = class {