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

77 lines
1.6 KiB
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
2021-03-05 14:22:06 -05:00
'use strict';
2020-11-18 11:58:16 -05:00
2020-11-18 12:12:30 -05:00
module.exports = function (environment) {
2020-11-18 11:58:16 -05:00
let ENV = {
2021-03-05 14:22:06 -05:00
modulePrefix: 'dummy',
2020-11-18 11:58:16 -05:00
environment,
2021-03-05 14:22:06 -05:00
rootURL: '/',
2023-01-09 08:48:49 -08:00
locationType: 'history',
2020-11-18 11:58:16 -05:00
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
},
EXTEND_PROTOTYPES: {
// Prevent Ember Data from overriding Date.parse.
2020-11-18 12:12:30 -05:00
Date: false,
},
2020-11-18 11:58:16 -05:00
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
2020-11-18 12:12:30 -05:00
},
appName: 'App Name',
companyName: 'Company Name',
documentation: {
baseURL: 'https://boundaryproject.io/help/admin-ui',
topics: {
account: '/accounts',
2021-03-05 14:22:06 -05:00
},
},
api: {
host: '',
namespace: 'v1',
},
'ember-cli-mirage': {
2021-03-05 14:22:06 -05:00
directory: '../api/mirage',
},
2021-03-05 14:22:06 -05:00
enableConfirmService: false,
2020-11-18 11:58:16 -05:00
};
2021-03-05 14:22:06 -05:00
if (environment === 'development') {
2020-11-18 11:58:16 -05:00
// 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;
}
2021-03-05 14:22:06 -05:00
if (environment === 'test') {
2020-11-18 11:58:16 -05:00
// Testem prefers this...
2021-03-05 14:22:06 -05:00
ENV.locationType = 'none';
2020-11-18 11:58:16 -05:00
// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
2021-03-05 14:22:06 -05:00
ENV.APP.rootElement = '#ember-testing';
2020-11-18 11:58:16 -05:00
ENV.APP.autoboot = false;
}
2021-03-05 14:22:06 -05:00
if (environment === 'production') {
2020-11-18 11:58:16 -05:00
// here you can enable a production-specific feature
}
return ENV;
};