Merge commit '8d86fe710d083e1d5b2f031ddcf3443b044785e3'
This commit is contained in:
commit
efb162bcd5
|
@ -1,7 +1,11 @@
|
||||||
const host = window.location.hostname;
|
const host = window.location.hostname;
|
||||||
export const HOST_AND_PORT = `${host}:7000`;
|
let hostAndPort = `api.${host}`;
|
||||||
|
let protocol = 'https';
|
||||||
export const BACKEND_BASE_URL = `http://${HOST_AND_PORT}/v1.0`;
|
if (/^\d+\./.test(host) || host === 'localhost') {
|
||||||
|
hostAndPort = `${host}:7000`;
|
||||||
|
protocol = 'http';
|
||||||
|
}
|
||||||
|
export const BACKEND_BASE_URL = `${protocol}://${hostAndPort}/v1.0`;
|
||||||
|
|
||||||
export const PROCESS_STATUSES = [
|
export const PROCESS_STATUSES = [
|
||||||
'not_started',
|
'not_started',
|
||||||
|
|
Loading…
Reference in New Issue