WIP - use traefik to route to application
This commit is contained in:
2
.env.web
2
.env.web
@@ -2,4 +2,4 @@ NUXT_PORT=3001
|
|||||||
NUXT_HOST=0.0.0.0
|
NUXT_HOST=0.0.0.0
|
||||||
|
|
||||||
# Point Nuxt to the API container (not localhost)
|
# 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
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ export const useApi = () => {
|
|||||||
// In browser, use current hostname but with port 3000 for API
|
// In browser, use current hostname but with port 3000 for API
|
||||||
const currentHost = window.location.hostname
|
const currentHost = window.location.hostname
|
||||||
const protocol = window.location.protocol
|
const protocol = window.location.protocol
|
||||||
return `${protocol}//${currentHost}:3000`
|
//return `${protocol}//${currentHost}:3000`
|
||||||
|
return `${protocol}//${currentHost}`
|
||||||
}
|
}
|
||||||
// Fallback for SSR
|
// Fallback for SSR
|
||||||
return config.public.apiBaseUrl
|
return config.public.apiBaseUrl
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ export function useSoftphone() {
|
|||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
const currentHost = window.location.hostname;
|
const currentHost = window.location.hostname;
|
||||||
const protocol = window.location.protocol;
|
const protocol = window.location.protocol;
|
||||||
return `${protocol}//${currentHost}:3000`;
|
return `${protocol}//${currentHost}`;
|
||||||
}
|
}
|
||||||
return 'http://localhost:3000';
|
return 'http://localhost:3000';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user