/* eslint-env node */ 'use strict'; module.exports = function(environment) { let ENV = { modulePrefix: 'ccdb-web', environment, rootURL: '/', locationType: 'auto', EmberENV: { FEATURES: { 'ds-payload-type-hooks': true, }, EXTEND_PROTOTYPES: { // Prevent Ember Data from overriding Date.parse. Date: false } }, APP: { // Here you can pass flags/options to your application instance // when it is created } }; if (environment === 'development') { ENV.APP.API_HOST = 'http://localhost:8000'; ENV.APP.API_NAMESPACE = 'api/v1'; ENV.APP.LOG_TRANSITIONS = true; } if (environment === 'test') { // Testem prefers this... ENV.locationType = 'none'; // 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') { ENV.APP.API_HOST = 'https://obscure-caverns-99102.herokuapp.com'; ENV.APP.API_NAMESPACE = 'api/v1'; } return ENV; };