equal
deleted
inserted
replaced
3 module.exports = function(environment) { |
3 module.exports = function(environment) { |
4 var ENV = { |
4 var ENV = { |
5 rootElement: '#corpus-app', |
5 rootElement: '#corpus-app', |
6 modulePrefix: 'app-client', |
6 modulePrefix: 'app-client', |
7 environment: environment, |
7 environment: environment, |
8 baseURL: '/corpus/', |
8 rootURL: '/corpus/', |
9 // locationType: '', |
9 locationType: 'hash', |
10 // contentSecurityPolicy: { |
10 // contentSecurityPolicy: { |
11 // 'default-src': "'none'", |
11 // 'default-src': "'none'", |
12 // 'style-src': "'self' 'http://localhost:4200'" |
12 // 'style-src': "'self' 'http://localhost:4200'" |
13 // }, |
13 // }, |
|
14 EmberENV: { |
|
15 FEATURES: { |
|
16 // Here you can enable experimental features on an ember canary build |
|
17 // e.g. 'with-controller': true |
|
18 } |
|
19 }, |
|
20 |
14 APP: { |
21 APP: { |
15 baseStatic: '', |
22 baseStatic: '', |
16 // Here you can pass flags/options to your application instance |
23 // Here you can pass flags/options to your application instance |
17 // when it is created |
24 // when it is created |
18 } |
25 } |
36 }; |
43 }; |
37 } |
44 } |
38 |
45 |
39 if (environment === 'test') { |
46 if (environment === 'test') { |
40 // Testem prefers this... |
47 // Testem prefers this... |
41 ENV.baseURL = '/'; |
48 ENV.rootURL = '/'; |
42 ENV.locationType = 'none'; |
49 ENV.locationType = 'none'; |
43 |
50 |
44 // keep test console output quieter |
51 // keep test console output quieter |
45 ENV.APP.LOG_ACTIVE_GENERATION = false; |
52 ENV.APP.LOG_ACTIVE_GENERATION = false; |
46 ENV.APP.LOG_VIEW_LOOKUPS = false; |
53 ENV.APP.LOG_VIEW_LOOKUPS = false; |