Skip to content

Commit 20466cb

Browse files
Added V2 coherence domains (#221)
1 parent 8a37f7e commit 20466cb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/data-sdk/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/data-sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@formant/data-sdk",
3-
"version": "1.80.5",
3+
"version": "1.80.7",
44
"description": "A library for getting data from Formant",
55
"repository": {
66
"type": "git",
@@ -86,4 +86,4 @@
8686
"engines": {
8787
"node": "^18.12.0 || ^16.13.0 || 20.x"
8888
}
89-
}
89+
}

packages/data-sdk/src/config/whichFormantApiUrl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ export function whichFormantApiUrl(
4242
}
4343

4444
if (host) {
45-
if (host.includes("app-dev.formant.io") || host.includes("localhost")) {
45+
if (host.includes("app-dev.formant.io") || host.includes("v2-coherence-dev.vercel.app") || host.includes("localhost")) {
4646
return "https://api-dev.formant.io";
4747
} else if (host.includes("app-stage.formant.io")) {
4848
return "https://api-stage.formant.io";
49-
} else if (host.includes("app.formant.io")) {
49+
} else if (host.includes("app.formant.io") || host.includes("v2-coherence.vercel.app")) {
5050
return "https://api.formant.io";
5151
}
5252
}
53-
} catch (_) {}
53+
} catch (_) { }
5454

5555
if (host) {
5656
if (host.includes("app-dev.formant.io")) {

0 commit comments

Comments
 (0)