overrideBaseUrl static method

void overrideBaseUrl(
  1. String rootUrl, {
  2. bool allowInRelease = false,
})

Route all Digia Engage SDK endpoints to rootUrl, excluding /api/v1. Must be called before Digia.initialize.

A dedicated release-mode test build can pass allowInRelease: true; ordinary release builds reject the override.

Implementation

static void overrideBaseUrl(
  String rootUrl, {
  bool allowInRelease = false,
}) {
  DigiaEndpoints.setTestRoot(
    rootUrl,
    allowInRelease: allowInRelease,
  );
}