@bash-app/bash-common 30.75.0 → 30.75.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,9 +12,16 @@ export function getFrontendHost(): string {
12
12
  }
13
13
 
14
14
  export function getBackendHost(): string {
15
- const host = isProduction()
16
- ? API_HOST
17
- : `${window.location.protocol}//${window.location.hostname}:3500`;
15
+ // In deployed environments (QA or PROD), use API_HOST
16
+ // Only use :3500 fallback for local development
17
+ const isLocalDev = window.location.hostname === 'localhost' ||
18
+ window.location.hostname === '127.0.0.1' ||
19
+ window.location.hostname.includes('192.168');
20
+
21
+ const host = isLocalDev
22
+ ? `${window.location.protocol}//${window.location.hostname}:3500`
23
+ : API_HOST;
24
+
18
25
  return host;
19
26
  }
20
27