fix(ihm_client): éviter fallback localhost; utiliser window.location.origin pour BASEURL/URLs par défaut
All checks were successful
Build and Push Docker image (ext) / docker (push) Successful in 50s
All checks were successful
Build and Push Docker image (ext) / docker (push) Successful in 50s
This commit is contained in:
parent
e9f6af41a1
commit
eb6f6be67b
@ -10,10 +10,11 @@ import { BackUp } from '~/models/backup.model';
|
|||||||
|
|
||||||
export const U32_MAX = 4294967295;
|
export const U32_MAX = 4294967295;
|
||||||
|
|
||||||
const BASEURL = import.meta.env.VITE_BASEURL || `http://localhost`;
|
const ORIGIN = typeof window !== 'undefined' ? window.location.origin : '';
|
||||||
const BOOTSTRAPURL = [import.meta.env.VITE_BOOTSTRAPURL || `${BASEURL}:8090`];
|
const BASEURL = import.meta.env.VITE_BASEURL || ORIGIN;
|
||||||
const STORAGEURL = import.meta.env.VITE_STORAGEURL || `${BASEURL}:8081`;
|
const BOOTSTRAPURL = [import.meta.env.VITE_BOOTSTRAPURL || `${BASEURL}`];
|
||||||
const BLINDBITURL = import.meta.env.VITE_BLINDBITURL || `${BASEURL}:8000`;
|
const STORAGEURL = import.meta.env.VITE_STORAGEURL || `${BASEURL}`;
|
||||||
|
const BLINDBITURL = import.meta.env.VITE_BLINDBITURL || `${BASEURL}`;
|
||||||
const DEFAULTAMOUNT = 1000n;
|
const DEFAULTAMOUNT = 1000n;
|
||||||
const EMPTY32BYTES = String('').padStart(64, '0');
|
const EMPTY32BYTES = String('').padStart(64, '0');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user