diff --git a/.env.web b/.env.web index 3c1392b..40a7652 100644 --- a/.env.web +++ b/.env.web @@ -2,4 +2,4 @@ NUXT_PORT=3001 NUXT_HOST=0.0.0.0 # Point Nuxt to the API container (not localhost) -NUXT_PUBLIC_API_BASE_URL=http://jupiter.routebox.co:3000 +NUXT_PUBLIC_API_BASE_URL=https://tenant1.routebox.co diff --git a/frontend/composables/useApi.ts b/frontend/composables/useApi.ts index 9f73398..087c89f 100644 --- a/frontend/composables/useApi.ts +++ b/frontend/composables/useApi.ts @@ -10,7 +10,8 @@ export const useApi = () => { // In browser, use current hostname but with port 3000 for API const currentHost = window.location.hostname const protocol = window.location.protocol - return `${protocol}//${currentHost}:3000` + //return `${protocol}//${currentHost}:3000` + return `${protocol}//${currentHost}` } // Fallback for SSR return config.public.apiBaseUrl diff --git a/frontend/composables/useSoftphone.ts b/frontend/composables/useSoftphone.ts index d044ea0..00d3cdb 100644 --- a/frontend/composables/useSoftphone.ts +++ b/frontend/composables/useSoftphone.ts @@ -205,7 +205,7 @@ export function useSoftphone() { if (typeof window !== 'undefined') { const currentHost = window.location.hostname; const protocol = window.location.protocol; - return `${protocol}//${currentHost}:3000`; + return `${protocol}//${currentHost}`; } return 'http://localhost:3000'; };