-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathenv.js
More file actions
28 lines (25 loc) · 992 Bytes
/
env.js
File metadata and controls
28 lines (25 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* Whenever running in CI, we are setting the environment variables.
* In CI, we are using the container names as hostnames, when running locally,
* we access the frontend through `localhost:8888`, our reverse proxy.
* @type {string}
*/
const CY_STEMMAWEB_FRONTEND_URL =
process.env.CY_STEMMAWEB_FRONTEND_URL || 'http://localhost:8888/stemmaweb';
/**
* Whenever running in CI, we are setting the environment variables.
* In CI, we are using the container names as hostnames, when running locally,
* we access the middleware through `localhost:8888`, our reverse proxy.
* @type {string}
*/
const CY_STEMMAWEB_MIDDLEWARE_URL =
process.env.CY_STEMMAWEB_MIDDLEWARE_URL ||
'http://localhost:8888/stemmaweb/requests';
const CY_STEMMAREST_ENDPOINT =
process.env.CY_STEMMAREST_ENDPOINT || 'http://localhost:8080/stemmarest';
/* 'http://127.0.0.1:8080/stemmarest'; */
module.exports = {
CY_STEMMAWEB_FRONTEND_URL,
CY_STEMMAWEB_MIDDLEWARE_URL,
CY_STEMMAREST_ENDPOINT
};