-
Notifications
You must be signed in to change notification settings - Fork 1
/
environment.js
39 lines (36 loc) · 979 Bytes
/
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
'use strict';
module.exports = function (environment) {
const ENV = {
modulePrefix: 'frontend-data-monitoring',
CORS_PROXY_URL: '{{CORS_PROXY_URL}}',
environment,
rootURL: '/',
locationType: 'history',
EmberENV: {
EXTEND_PROTOTYPES: false
},
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}}'
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
},
features: {
// define feature flags here
}
};
if (environment === 'test') {
ENV.locationType = 'none';
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing';
ENV.APP.autoboot = false;
}
return ENV;
};