diff --git a/app/[lang]/_components/ChatwootWidget.tsx b/app/[lang]/_components/ChatwootWidget.tsx index b6bb4fc..79b8713 100644 --- a/app/[lang]/_components/ChatwootWidget.tsx +++ b/app/[lang]/_components/ChatwootWidget.tsx @@ -226,8 +226,8 @@ export function ChatwootWidget({ nonce }: { nonce?: string }): ReactElement { console.log('[ChatwootWidget] Chatwoot SDK found, initializing') window.chatwootSDK.run({ - websiteToken: '', // Gets set by the backend proxy - baseUrl: '/api/chatwoot', + websiteToken: process.env.NEXT_PUBLIC_CHATWOOT_API_KEY ?? '', + baseUrl: 'https://app.chatwoot.com', }) window.chatwootSDK.isLoaded = true setIsInitialized(true) @@ -255,7 +255,7 @@ export function ChatwootWidget({ nonce }: { nonce?: string }): ReactElement { return (