Skip to content

Commit 9d76cb8

Browse files
chore: changed default appUrl - the same app
1 parent ce390cf commit 9d76cb8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const environment = {
22
env: 'prod',
3-
appUrl: 'https://assistant.ai.boldare.dev',
3+
appUrl: '',
44
};

libs/ai-embedded/src/lib/assistant-iframe.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export class AssistantIframe {
88
trigger!: HTMLElement;
99

1010
constructor(config: Partial<AssistantIframeConfig> = {}) {
11-
const url = `${environment.appUrl}/chat/iframe`;
11+
const { protocol, hostname, port } = window.location;
12+
const appUrl = environment.appUrl || `${protocol}//${hostname}:${port}`;
13+
const url = `${appUrl}/chat/iframe`;
1214

1315
this.config = {
1416
url: config.url || url,

0 commit comments

Comments
 (0)