You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/client-config.js
+28-34Lines changed: 28 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -12,42 +12,36 @@
12
12
/**
13
13
* When running application in slow network condition (reproducible using 3G), the client-config.js might be loaded twice.
14
14
* This results to issues like `Uncaught SyntaxError: "identifier scheme has already been declared at (client-config.js:1:1")`.
15
-
*
15
+
*
16
16
* On high level, refreshing the browser window requests new document page. The document page includes script tag to load client-config.js.
17
17
* If the network is slow, the browser might start loading and executing client-config.js again before the previous one is torn down, causing the error.
18
-
*
18
+
*
19
19
*/
20
20
;(functioninitClientConfig(){
21
-
22
-
window.config={
23
-
API_GATEWAY_URL: 'http://localhost:7070/',
24
-
CONFIG_API_URL: 'http://localhost:2021',
25
-
LOGIN_URL: 'http://localhost:3020',
26
-
AUTH_URL: 'http://localhost:7070/auth/',
27
-
MINIO_BUCKET: 'ocrvs',
28
-
MINIO_URL: 'http://localhost:3535/ocrvs/',
29
-
MINIO_BASE_URL: 'http://localhost:3535',// URL without path/bucket information, used for file uploads, v2
30
-
COUNTRY_CONFIG_URL: 'http://localhost:3040',
31
-
// Country code in uppercase ALPHA-3 format
32
-
COUNTRY: 'FAR',
33
-
LANGUAGES: 'en,fr',
34
-
SENTRY: '',
35
-
DASHBOARDS: [
36
-
{
37
-
id: 'leaderboards',
38
-
title: {
39
-
id: 'navigation.leaderboards',
40
-
defaultMessage: 'Development dashboard',
41
-
description: 'Menu item for development dashboard'
42
-
},
43
-
url: 'http://localhost:3040/ping',
44
-
}
45
-
],
46
-
// NOTE: This is not valid javascript until replaced during build time.
47
-
// IIFE just reveals it.
48
-
FEATURES: {
49
-
// The V2_EVENTS variable is passed down from src/index.ts:309
50
-
V2_EVENTS: {{V2_EVENTS}}
21
+
window.config={
22
+
API_GATEWAY_URL: 'http://localhost:7070/',
23
+
CONFIG_API_URL: 'http://localhost:2021',
24
+
LOGIN_URL: 'http://localhost:3020',
25
+
AUTH_URL: 'http://localhost:7070/auth/',
26
+
MINIO_BUCKET: 'ocrvs',
27
+
MINIO_URL: 'http://localhost:3535/ocrvs/',
28
+
MINIO_BASE_URL: 'http://localhost:3535',// URL without path/bucket information, used for file uploads, v2
29
+
COUNTRY_CONFIG_URL: 'http://localhost:3040',
30
+
// Country code in uppercase ALPHA-3 format
31
+
COUNTRY: 'FAR',
32
+
LANGUAGES: 'en,fr',
33
+
SENTRY: '',
34
+
DASHBOARDS: [
35
+
{
36
+
id: 'leaderboards',
37
+
title: {
38
+
id: 'navigation.leaderboards',
39
+
defaultMessage: 'Development dashboard',
40
+
description: 'Menu item for development dashboard'
Copy file name to clipboardExpand all lines: src/client-config.prod.js
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@
12
12
/**
13
13
* When running application in slow network condition (reproducible using 3G), the client-config.js might be loaded twice.
14
14
* This results to issues like `Uncaught SyntaxError: "identifier scheme has already been declared at (client-config.js:1:1")`.
15
-
*
15
+
*
16
16
* On high level, refreshing the browser window requests new document page. The document page includes script tag to load client-config.js.
17
17
* If the network is slow, the browser might start loading and executing client-config.js again before the previous one is torn down, causing the error.
18
-
*
18
+
*
19
19
*/
20
20
;(functioninitClientConfig(){
21
21
constscheme=window.location.protocol// "http:" or "https:"
@@ -66,9 +66,6 @@
66
66
],
67
67
// NOTE: This is not valid javascript until replaced during build time.
68
68
// IIFE just reveals it.
69
-
FEATURES: {
70
-
// The V2_EVENTS variable is passed down from src/index.ts:309
0 commit comments