diff --git a/booklore-ui/src/environments/environment.prod.ts b/booklore-ui/src/environments/environment.prod.ts index d0465426d..5788e2667 100644 --- a/booklore-ui/src/environments/environment.prod.ts +++ b/booklore-ui/src/environments/environment.prod.ts @@ -1,7 +1,7 @@ export const environment = { production: true, API_CONFIG: { - BASE_URL: `http://localhost:${window.location.port}`, - BROKER_URL: `ws://localhost:${window.location.port}/ws`, + BASE_URL: `http://${window.location.hostname}:${window.location.port}`, + BROKER_URL: `ws://${window.location.hostname}:${window.location.port}/ws`, }, };