2023-03-01 09:39:41 -06:00
|
|
|
/**
|
2026-01-28 17:09:06 -08:00
|
|
|
* Copyright IBM Corp. 2021, 2026
|
2024-05-31 11:29:24 -07:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-01 09:39:41 -06:00
|
|
|
*/
|
|
|
|
|
|
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: {
|
2020-05-20 11:47:31 -04:00
|
|
|
host: '',
|
|
|
|
|
namespace: 'v1',
|
2020-05-19 16:33:31 -04:00
|
|
|
},
|
2024-03-13 15:52:55 -04:00
|
|
|
|
2026-02-03 13:54:32 -05:00
|
|
|
mirage: {
|
2026-03-05 19:36:45 -05:00
|
|
|
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;
|
2020-05-13 15:47:38 -04:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
};
|