-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenvironment.js
106 lines (92 loc) · 2.95 KB
/
environment.js
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
'use strict';
module.exports = function (environment) {
const ENV = {
modulePrefix: 'frontend-organization-portal',
environment,
rootURL: '/',
locationType: 'history',
EmberENV: {
EXTEND_PROTOTYPES: false,
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
},
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
analytics: {
appDomain: '{{ANALYTICS_APP_DOMAIN}}',
plausibleScript: '{{ANALYTICS_PLAUSIBLE_SCRIPT}}',
},
},
announce: {
maintenance: {
enabled: '{{ANNOUNCE_MAINTENANCE_ENABLED}}',
message: '{{ANNOUNCE_MAINTENANCE_MESSAGE}}',
},
newDeployment: {
enabled: '{{ANNOUNCE_NEW_DEPLOYMENT_ENABLED}}',
message: '{{ANNOUNCE_NEW_DEPLOYMENT_MESSAGE}}',
},
testing: {
enabled: '{{ANNOUNCE_TESTING_ENABLED}}',
message: '{{ANNOUNCE_TESTING_MESSAGE}}',
},
},
appName: 'OrganisatiePortaal',
contactEmail: '[email protected]',
environmentName: '{{ENVIRONMENT_NAME}}',
acmidm: {
clientId: '{{OAUTH_API_KEY}}',
scope: '{{OAUTH_API_SCOPE}}',
authUrl: '{{OAUTH_API_BASE_URL}}',
logoutUrl: '{{OAUTH_API_LOGOUT_URL}}',
authRedirectUrl: '{{OAUTH_API_REDIRECT_URL}}',
switchRedirectUrl: '{{OAUTH_SWITCH_URL}}',
},
showAppVersionHash: process.env.SHOW_APP_VERSION_HASH === 'true',
uriInfoServiceUrl: '/uri-info',
userManual: {
general:
'https://abb-vlaanderen.gitbook.io/handleiding-organisatieportaal',
module: {
organizations:
'https://abb-vlaanderen.gitbook.io/handleiding-organisatieportaal/modules/bestuurseenheden',
people:
'https://abb-vlaanderen.gitbook.io/handleiding-organisatieportaal/modules/personen',
},
},
features: {
'edit-contact-data': '{{ENABLE_EDIT_CONTACT_DATA_FEATURE}}',
},
yasgui: {
defaultQuery: '{{YASGUI_DEFAULT_QUERY}}',
extraPrefixes: '{{YASGUI_EXTRA_PREFIXES}}',
},
};
if (environment === 'development') {
ENV.showAppVersionHash = true;
ENV.environmentName = 'development';
ENV.features['edit-contact-data'] = true;
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
}
if (environment === 'test') {
// Testem prefers this...
ENV.locationType = 'none';
ENV.environmentName = 'test';
// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing';
ENV.APP.autoboot = false;
}
if (environment === 'production') {
// here you can enable a production-specific feature
}
return ENV;
};