From 801644f396da02f551940200803ac9083d54b518 Mon Sep 17 00:00:00 2001 From: Francisco Gaona Date: Sat, 3 Jan 2026 23:15:24 +0100 Subject: [PATCH] WIP - use traefik to route to application --- .env.web | 2 +- frontend/composables/useApi.ts | 3 ++- frontend/composables/useSoftphone.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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'; };