Files
threshold-ui/addons/api/tests/dummy/config/environment.js
T

66 lines
1.4 KiB
JavaScript
Raw Normal View History

/**
2026-01-28 17:09:06 -08:00
* Copyright IBM Corp. 2021, 2026
* SPDX-License-Identifier: BUSL-1.1
*/
2020-05-12 14:30:38 -04:00
'use strict';
module.exports = function (environment) {
2023-08-14 17:03:59 -04:00
const ENV = {
2020-05-12 14:30:38 -04:00
modulePrefix: 'dummy',
environment,
rootURL: '/',
2023-01-09 08:48:49 -08:00
locationType: 'history',
2020-05-12 14:30:38 -04:00
EmberENV: {
2023-08-14 17:03:59 -04:00
EXTEND_PROTOTYPES: false,
2020-05-12 14:30:38 -04:00
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
},
2020-05-19 16:33:31 -04:00
api: {
host: '',
namespace: 'v1',
2020-05-19 16:33:31 -04:00
},
2024-03-13 15:52:55 -04:00
mirage: {
enabled: true,
2024-03-13 15:52:55 -04:00
},
2020-05-12 14:30:38 -04:00
};
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.locationType = 'none';
// 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;
ENV.storage = {
memory: true,
};
2020-05-12 14:30:38 -04:00
}
if (environment === 'production') {
// here you can enable a production-specific feature
}
return ENV;
};