60 lines
1.3 KiB
JavaScript
60 lines
1.3 KiB
JavaScript
/* jshint node: true */
|
|
|
|
module.exports = function(environment) {
|
|
var ENV = {
|
|
modulePrefix: 'croodle',
|
|
environment: environment,
|
|
locationType: 'hash',
|
|
EmberENV: {
|
|
FEATURES: {
|
|
'query-params-new': true
|
|
}
|
|
},
|
|
|
|
APP: {
|
|
// Here you can pass flags/options to your application instance
|
|
// when it is created
|
|
},
|
|
|
|
contentSecurityPolicy: {
|
|
'default-src': "'none'",
|
|
'script-src': "'self' 'unsafe-eval'",
|
|
'font-src': "'self'",
|
|
'connect-src': "'self'",
|
|
'img-src': "'self'",
|
|
'style-src': "'self' 'unsafe-inline'",
|
|
'media-src': "'self'"
|
|
},
|
|
|
|
moment: {
|
|
includeLocales: ['de', 'es'],
|
|
includeTimezone: '2010-2020'
|
|
}
|
|
};
|
|
|
|
if (environment === 'development') {
|
|
// 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.baseURL = '/';
|
|
ENV.locationType = 'hash';
|
|
|
|
// keep test console output quieter
|
|
ENV.APP.LOG_ACTIVE_GENERATION = false;
|
|
ENV.APP.LOG_VIEW_LOOKUPS = false;
|
|
|
|
ENV.APP.rootElement = '#ember-testing';
|
|
}
|
|
|
|
if (environment === 'production') {
|
|
|
|
}
|
|
|
|
return ENV;
|
|
};
|