@@ -22,33 +22,32 @@ const gitCommit =
22
22
process . env . HUB_UI_VERSION ||
23
23
execSync ( 'git rev-parse HEAD' , { encoding : 'utf-8' } ) . trim ( ) ;
24
24
25
+ const docsURL =
26
+ 'https://access.redhat.com/documentation/en-us/red_hat_ansible_automation_platform/' ;
27
+
25
28
// Default user defined settings
26
29
const defaultConfigs = [
27
30
// Global scope means that the variable will be available to the app itself
28
31
// as a constant after it is compiled
29
- { name : 'API_HOST' , default : '' , scope : 'global' } ,
30
32
{ name : 'API_BASE_PATH' , default : '' , scope : 'global' } ,
31
- { name : 'UI_BASE_PATH' , default : '' , scope : 'global' } ,
32
- { name : 'DEPLOYMENT_MODE' , default : 'standalone' , scope : 'global' } ,
33
- { name : 'NAMESPACE_TERM' , default : 'namespaces' , scope : 'global' } ,
33
+ { name : 'API_HOST' , default : '' , scope : 'global' } ,
34
34
{ name : 'APPLICATION_NAME' , default : 'Galaxy NG' , scope : 'global' } ,
35
- { name : 'UI_EXTERNAL_LOGIN_URI' , default : '/login' , scope : 'global' } ,
35
+ { name : 'IS_COMMUNITY' , default : false , scope : 'global' } ,
36
+ { name : 'IS_INSIGHTS' , default : false , scope : 'global' } ,
37
+ { name : 'NAMESPACE_TERM' , default : 'namespaces' , scope : 'global' } ,
38
+ { name : 'UI_BASE_PATH' , default : '' , scope : 'global' } ,
36
39
{ name : 'UI_COMMIT_HASH' , default : gitCommit , scope : 'global' } ,
37
- {
38
- name : 'UI_DOCS_URL' ,
39
- default :
40
- 'https://access.redhat.com/documentation/en-us/red_hat_ansible_automation_platform/' ,
41
- scope : 'global' ,
42
- } ,
43
-
44
- // Webpack scope means the variable will only be available to webpack at
45
- // build time
46
- { name : 'UI_USE_HTTPS' , default : false , scope : 'webpack' } ,
40
+ { name : 'UI_DOCS_URL' , default : docsURL , scope : 'global' } ,
41
+ { name : 'UI_EXTERNAL_LOGIN_URI' , default : '/login' , scope : 'global' } ,
42
+
43
+ // Webpack scope: only available in customConfigs here, not exposed to the UI
44
+ { name : 'API_PROXY_TARGET' , default : undefined , scope : 'webpack' } ,
45
+ { name : 'DEPLOYMENT_MODE' , default : 'standalone' , scope : 'webpack' } ,
47
46
{ name : 'UI_DEBUG' , default : false , scope : 'webpack' } ,
48
47
{ name : 'UI_PORT' , default : 8002 , scope : 'webpack' } ,
48
+ { name : 'UI_USE_HTTPS' , default : false , scope : 'webpack' } ,
49
49
{ name : 'WEBPACK_PROXY' , default : undefined , scope : 'webpack' } ,
50
50
{ name : 'WEBPACK_PUBLIC_PATH' , default : undefined , scope : 'webpack' } ,
51
- { name : 'API_PROXY_TARGET' , default : undefined , scope : 'webpack' } ,
52
51
] ;
53
52
54
53
const insightsMockAPIs = ( { app } ) => {
0 commit comments