From 4e5b9b633b2c7b9f1a67fe50d6e93651f108e752 Mon Sep 17 00:00:00 2001 From: mswolfer <42715053+mswolfer@users.noreply.github.com> Date: Sun, 16 Mar 2025 13:52:52 -0500 Subject: [PATCH] Fixed BASE_URL protocol (for proxy support) in environment.prod.ts --- booklore-ui/src/environments/environment.prod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/booklore-ui/src/environments/environment.prod.ts b/booklore-ui/src/environments/environment.prod.ts index 5788e2667..0ef05e85b 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://${window.location.hostname}:${window.location.port}`, + BASE_URL: `${window.location.protocol}//${window.location.hostname}:${window.location.port}`, BROKER_URL: `ws://${window.location.hostname}:${window.location.port}/ws`, }, };