in src/ConfigurationClientManager.ts [90:109]
async init() {
if (this.#appConfigOptions?.replicaDiscoveryEnabled === false || isBrowser() || isWebWorker()) {
this.#isFailoverable = false;
return;
}
if (this.#dns) { // dns module is already loaded
return;
}
// We can only know whether dns module is available during runtime.
try {
this.#dns = await import("dns/promises");
} catch (error) {
this.#isFailoverable = false;
console.warn("Failed to load the dns module:", error.message);
return;
}
this.#isFailoverable = true;
}