diff --git a/src/lib/Configuration.ts b/src/lib/Configuration.ts index 07163d5b..6c4df6b8 100644 --- a/src/lib/Configuration.ts +++ b/src/lib/Configuration.ts @@ -167,11 +167,12 @@ const getMainEnv = () => type: 'string', optional: true, }, - /** The base url for the Modeler API. Defaults to Camunda Saas - https://modeler.cloud.camunda.io/api */ + // https://github.com/camunda/camunda-8-js-sdk/issues/203 + /** The base url for the Modeler API. Defaults to Camunda Saas - https://modeler.camunda.io/api */ CAMUNDA_MODELER_BASE_URL: { type: 'string', optional: true, - default: 'https://modeler.cloud.camunda.io/api', + default: 'https://modeler.camunda.io/api', }, /** The base url for the Admin Console API. */ CAMUNDA_CONSOLE_BASE_URL: { diff --git a/src/modeler/lib/ModelerAPIClient.ts b/src/modeler/lib/ModelerAPIClient.ts index 1715ac74..becbf89a 100644 --- a/src/modeler/lib/ModelerAPIClient.ts +++ b/src/modeler/lib/ModelerAPIClient.ts @@ -33,8 +33,7 @@ export class ModelerApiClient { const config = CamundaEnvironmentConfigurator.mergeConfigWithEnvironment( options?.config ?? {} ) - const modelerApiUrl = - config.CAMUNDA_MODELER_BASE_URL ?? 'https://modeler.cloud.camunda.io/api' + const modelerApiUrl = config.CAMUNDA_MODELER_BASE_URL this.oAuthProvider = options?.oAuthProvider ?? constructOAuthProvider(config) this.userAgentString = createUserAgentString(config)