From 2d45e8056a4e8a26062d55e4599ebdb801c12b40 Mon Sep 17 00:00:00 2001 From: EduardSisakyan Date: Mon, 30 Jun 2025 19:25:33 +0400 Subject: [PATCH] Added V2 coherence domains --- packages/data-sdk/package-lock.json | 4 ++-- packages/data-sdk/package.json | 4 ++-- packages/data-sdk/src/config/whichFormantApiUrl.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/data-sdk/package-lock.json b/packages/data-sdk/package-lock.json index f2397a4c..b2f13957 100644 --- a/packages/data-sdk/package-lock.json +++ b/packages/data-sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "@formant/data-sdk", - "version": "1.80.5", + "version": "1.80.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@formant/data-sdk", - "version": "1.80.5", + "version": "1.80.6", "license": "MIT", "dependencies": { "@formant/ui-sdk-realtime-player-core": "^0.0.2", diff --git a/packages/data-sdk/package.json b/packages/data-sdk/package.json index 9aaa76e8..1e71293e 100644 --- a/packages/data-sdk/package.json +++ b/packages/data-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@formant/data-sdk", - "version": "1.80.5", + "version": "1.80.7", "description": "A library for getting data from Formant", "repository": { "type": "git", @@ -86,4 +86,4 @@ "engines": { "node": "^18.12.0 || ^16.13.0 || 20.x" } -} +} \ No newline at end of file diff --git a/packages/data-sdk/src/config/whichFormantApiUrl.ts b/packages/data-sdk/src/config/whichFormantApiUrl.ts index e2abacb0..552b6fa0 100644 --- a/packages/data-sdk/src/config/whichFormantApiUrl.ts +++ b/packages/data-sdk/src/config/whichFormantApiUrl.ts @@ -42,15 +42,15 @@ export function whichFormantApiUrl( } if (host) { - if (host.includes("app-dev.formant.io") || host.includes("localhost")) { + if (host.includes("app-dev.formant.io") || host.includes("v2-coherence-dev.vercel.app") || host.includes("localhost")) { return "https://api-dev.formant.io"; } else if (host.includes("app-stage.formant.io")) { return "https://api-stage.formant.io"; - } else if (host.includes("app.formant.io")) { + } else if (host.includes("app.formant.io") || host.includes("v2-coherence.vercel.app")) { return "https://api.formant.io"; } } - } catch (_) {} + } catch (_) { } if (host) { if (host.includes("app-dev.formant.io")) {