Skip to content

Commit 6a4a43e

Browse files
committed
🐛 Fix new guessApiHost in editor
1 parent 7aad60c commit 6a4a43e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/embeds/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@typebot.io/js",
3-
"version": "0.2.62",
3+
"version": "0.2.63",
44
"description": "Javascript library to display typebots on your website",
55
"type": "module",
66
"main": "dist/index.js",

packages/embeds/js/src/utils/guessApiHost.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ export const guessApiHost = (
3333
window.___location.href.startsWith(url)
3434
)
3535

36-
return matchedUrl ?? chatApiCloudFallbackHost
36+
return matchedUrl ?? viewerUrls?.[0] ?? chatApiCloudFallbackHost
3737
}

packages/embeds/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@typebot.io/nextjs",
3-
"version": "0.2.62",
3+
"version": "0.2.63",
44
"description": "Convenient library to display typebots on your Next.js website",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

packages/embeds/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@typebot.io/react",
3-
"version": "0.2.62",
3+
"version": "0.2.63",
44
"description": "Convenient library to display typebots on your React app",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)